pub struct PluginInput {
pub directives: Vec<DirectiveWrapper>,
pub options: PluginOptions,
pub config: Option<String>,
}Expand description
Input passed to a plugin.
The host serializes this struct via MessagePack and passes it to the
plugin’s process function.
Fields§
§directives: Vec<DirectiveWrapper>All directives to process.
options: PluginOptionsLedger options.
config: Option<String>Plugin-specific configuration string (from the plugin directive).
For example, plugin "myplugin.wasm" "threshold=100" would set
config to Some("threshold=100").
Trait Implementations§
Source§impl Clone for PluginInput
impl Clone for PluginInput
Source§fn clone(&self) -> PluginInput
fn clone(&self) -> PluginInput
Returns a duplicate of the value. Read more
1.0.0 · 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 PluginInput
impl Debug for PluginInput
Source§impl<'de> Deserialize<'de> for PluginInput
impl<'de> Deserialize<'de> for PluginInput
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
Auto Trait Implementations§
impl Freeze for PluginInput
impl RefUnwindSafe for PluginInput
impl Send for PluginInput
impl Sync for PluginInput
impl Unpin for PluginInput
impl UnsafeUnpin for PluginInput
impl UnwindSafe for PluginInput
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