pub struct ExtensionCommand {
pub name: String,
pub id: Option<String>,
pub args: Value,
}Expand description
A custom command dispatched to extensions.
Fields§
§name: StringThe command name (e.g. "todo/add").
id: Option<String>Optional ID for response correlation.
args: ValueCommand arguments.
Implementations§
Trait Implementations§
Source§impl Clone for ExtensionCommand
impl Clone for ExtensionCommand
Source§fn clone(&self) -> ExtensionCommand
fn clone(&self) -> ExtensionCommand
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 moreAuto Trait Implementations§
impl Freeze for ExtensionCommand
impl RefUnwindSafe for ExtensionCommand
impl Send for ExtensionCommand
impl Sync for ExtensionCommand
impl Unpin for ExtensionCommand
impl UnsafeUnpin for ExtensionCommand
impl UnwindSafe for ExtensionCommand
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