pub struct Command {
pub name: String,
pub description: String,
pub argument_hint: Option<String>,
pub is_hidden: Option<bool>,
pub supports_non_interactive: Option<bool>,
pub command_type: String,
}Fields§
§name: String§description: String§argument_hint: Option<String>§supports_non_interactive: Option<bool>§command_type: StringImplementations§
Source§impl Command
impl Command
pub fn local(name: impl Into<String>, description: impl Into<String>) -> Self
pub fn prompt(name: impl Into<String>, description: impl Into<String>) -> Self
pub fn argument_hint(self, hint: impl Into<String>) -> Self
pub fn supports_non_interactive(self, supported: bool) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
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 Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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