pub struct PluginConfig {
pub path: String,
pub type_name: String,
pub config: HashMap<String, Value>,
pub sha256: Option<String>,
}Expand description
Configuration for one Rust-native plug-in instance loaded by a live node.
Fields§
§path: StringPath to the plug-in cdylib. Relative paths resolve from the process working directory.
type_name: StringType name from the plug-in manifest to instantiate.
config: HashMap<String, Value>Per-instance JSON configuration passed to the plug-in create thunk.
sha256: Option<String>Optional SHA-256 hex digest of the cdylib before loading.
Implementations§
Source§impl PluginConfig
impl PluginConfig
Sourcepub fn builder() -> PluginConfigBuilder
pub fn builder() -> PluginConfigBuilder
Create an instance of PluginConfig using the builder syntax
Trait Implementations§
Source§impl Clone for PluginConfig
impl Clone for PluginConfig
Source§fn clone(&self) -> PluginConfig
fn clone(&self) -> PluginConfig
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 PluginConfig
impl Debug for PluginConfig
Source§impl Default for PluginConfig
impl Default for PluginConfig
Source§impl<'de> Deserialize<'de> for PluginConfigwhere
PluginConfig: Default,
impl<'de> Deserialize<'de> for PluginConfigwhere
PluginConfig: Default,
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 PluginConfig
impl PartialEq for PluginConfig
Source§impl Serialize for PluginConfig
impl Serialize for PluginConfig
impl StructuralPartialEq for PluginConfig
Auto Trait Implementations§
impl Freeze for PluginConfig
impl RefUnwindSafe for PluginConfig
impl Send for PluginConfig
impl Sync for PluginConfig
impl Unpin for PluginConfig
impl UnsafeUnpin for PluginConfig
impl UnwindSafe for PluginConfig
Blanket Implementations§
impl<T> Allocation for T
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