pub struct CommandContract {
pub name: &'static str,
pub summary: &'static str,
pub daemon_consumed: bool,
pub positionals: Vec<PositionalContract>,
pub flags: Vec<FlagContract>,
pub json_output_keys: Vec<&'static str>,
pub hard_dependencies: Vec<&'static str>,
pub optional_dependencies: Vec<&'static str>,
pub multimodal: Option<&'static str>,
pub degradation: Option<DegradationContract>,
}Fields§
§name: &'static str§summary: &'static str§daemon_consumed: bool§positionals: Vec<PositionalContract>§flags: Vec<FlagContract>§json_output_keys: Vec<&'static str>§hard_dependencies: Vec<&'static str>§optional_dependencies: Vec<&'static str>§multimodal: Option<&'static str>§degradation: Option<DegradationContract>Implementations§
Trait Implementations§
Source§impl Debug for CommandContract
impl Debug for CommandContract
Auto Trait Implementations§
impl Freeze for CommandContract
impl RefUnwindSafe for CommandContract
impl Send for CommandContract
impl Sync for CommandContract
impl Unpin for CommandContract
impl UnsafeUnpin for CommandContract
impl UnwindSafe for CommandContract
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