pub struct GhostCommand {
pub name: String,
pub source: GhostSource,
pub description: Option<String>,
}Expand description
A command that exists on only one side of the frontend/backend boundary.
Fields§
§name: StringCommand name as invoked or registered.
source: GhostSourceWhich side the command was found on.
description: Option<String>Optional description, if available from the registry.
Trait Implementations§
Source§impl Clone for GhostCommand
impl Clone for GhostCommand
Source§fn clone(&self) -> GhostCommand
fn clone(&self) -> GhostCommand
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 GhostCommand
impl Debug for GhostCommand
Source§impl<'de> Deserialize<'de> for GhostCommand
impl<'de> Deserialize<'de> for GhostCommand
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 Display for GhostCommand
impl Display for GhostCommand
Source§impl PartialEq for GhostCommand
impl PartialEq for GhostCommand
Source§fn eq(&self, other: &GhostCommand) -> bool
fn eq(&self, other: &GhostCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GhostCommand
impl Serialize for GhostCommand
impl Eq for GhostCommand
impl StructuralPartialEq for GhostCommand
Auto Trait Implementations§
impl Freeze for GhostCommand
impl RefUnwindSafe for GhostCommand
impl Send for GhostCommand
impl Sync for GhostCommand
impl Unpin for GhostCommand
impl UnsafeUnpin for GhostCommand
impl UnwindSafe for GhostCommand
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