pub struct PluginInfo {
pub name: String,
pub version: String,
pub protocol: u32,
pub licence: String,
pub capabilities: Vec<String>,
pub runtime: Option<RuntimeStatus>,
pub program: String,
pub extra: Map<String, Value>,
}Expand description
A plugin program and what it offers (its answer to info).
Fields§
§name: StringIts name.
version: StringIts version.
protocol: u32The protocol version it speaks (1 when it does not say).
licence: StringIts licence (it may differ from the app’s).
capabilities: Vec<String>What it can do (segment, instances, sort): the app offers what these name.
runtime: Option<RuntimeStatus>Whether its runtime is ready.
program: StringWhere it was found (set by discovery, not by the plugin).
extra: Map<String, Value>The app’s own fields (lumen’s models).
Implementations§
Trait Implementations§
Source§impl Clone for PluginInfo
impl Clone for PluginInfo
Source§impl Debug for PluginInfo
impl Debug for PluginInfo
Source§impl<'de> Deserialize<'de> for PluginInfo
impl<'de> Deserialize<'de> for PluginInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PluginInfo
impl PartialEq for PluginInfo
Source§impl Serialize for PluginInfo
impl Serialize for PluginInfo
impl StructuralPartialEq for PluginInfo
Auto Trait Implementations§
impl Forget for PluginInfo
impl Freeze for PluginInfowhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for PluginInfo
impl RefUnwindSafe for PluginInfo
impl Send for PluginInfo
impl Sync for PluginInfo
impl Unpin for PluginInfo
impl UnsafeUnpin for PluginInfowhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for PluginInfo
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