pub struct PluginManifest {
pub name: &'static str,
pub version: &'static str,
pub description: &'static str,
pub api_version: u32,
}Expand description
Static description of a plugin, shown in GET /v1/info and GET /v1/plugins.
Fields§
§name: &'static strLowercase, URL-safe name ("hello"). Also the route prefix
/v1/plugins/<name>/… and the env prefix WAVYZON_PLUGIN_<NAME>_.
version: &'static str§description: &'static str§api_version: u32Must equal API_VERSION.
Trait Implementations§
Source§impl Clone for PluginManifest
impl Clone for PluginManifest
Source§fn clone(&self) -> PluginManifest
fn clone(&self) -> PluginManifest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PluginManifest
impl Debug for PluginManifest
Auto Trait Implementations§
impl Freeze for PluginManifest
impl RefUnwindSafe for PluginManifest
impl Send for PluginManifest
impl Sync for PluginManifest
impl Unpin for PluginManifest
impl UnsafeUnpin for PluginManifest
impl UnwindSafe for PluginManifest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more