pub struct PluginPreset {
pub uid: String,
pub plugin_name: String,
pub state: Vec<u8>,
}Expand description
A saved plugin preset: the plugin’s identity plus its opaque state blob.
Written/read by Plugin::save_preset / Plugin::load_preset. The uid lets a
loader reject a preset that belongs to a different plugin (whose state bytes would be
meaningless or harmful).
Fields§
§uid: StringThe originating plugin’s unique class id (PluginInfo::uid).
plugin_name: StringThe originating plugin’s display name (for friendly mismatch messages).
state: Vec<u8>The plugin’s opaque serialized state (from Plugin::save_state).
Trait Implementations§
Source§impl Clone for PluginPreset
impl Clone for PluginPreset
Source§fn clone(&self) -> PluginPreset
fn clone(&self) -> PluginPreset
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 PluginPreset
impl Debug for PluginPreset
Source§impl<'de> Deserialize<'de> for PluginPreset
impl<'de> Deserialize<'de> for PluginPreset
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 PluginPreset
impl RefUnwindSafe for PluginPreset
impl Send for PluginPreset
impl Sync for PluginPreset
impl Unpin for PluginPreset
impl UnsafeUnpin for PluginPreset
impl UnwindSafe for PluginPreset
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