#[non_exhaustive]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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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§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
impl Eq for GhostCommand
Source§impl PartialEq for GhostCommand
impl PartialEq for GhostCommand
Source§impl Serialize for GhostCommand
impl Serialize 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