pub struct PluginProps {
pub plugin_type: String,
pub props: Value,
}Expand description
Props for a plugin component.
The plugin_type field holds the original "type" value from JSON,
and props holds the remaining fields. Used for custom interactive
components registered via the plugin system.
Fields§
§plugin_type: StringThe plugin component type name (e.g., “Map”).
props: ValueRaw props passed to the plugin’s render function.
Trait Implementations§
Source§impl Clone for PluginProps
impl Clone for PluginProps
Source§fn clone(&self) -> PluginProps
fn clone(&self) -> PluginProps
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 PluginProps
impl Debug for PluginProps
Source§impl<'de> Deserialize<'de> for PluginProps
impl<'de> Deserialize<'de> for PluginProps
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PluginProps
impl PartialEq for PluginProps
Source§impl Serialize for PluginProps
impl Serialize for PluginProps
impl StructuralPartialEq for PluginProps
Auto Trait Implementations§
impl Freeze for PluginProps
impl RefUnwindSafe for PluginProps
impl Send for PluginProps
impl Sync for PluginProps
impl Unpin for PluginProps
impl UnsafeUnpin for PluginProps
impl UnwindSafe for PluginProps
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