pub struct CommandAnnotation {
pub stdin: Option<IODescriptor>,
pub stdout: Option<IODescriptor>,
pub examples: Vec<Example>,
pub auth: Option<CommandAuth>,
}Expand description
Annotations for a single command (examples, IO, auth).
Fields§
§stdin: Option<IODescriptor>§stdout: Option<IODescriptor>§examples: Vec<Example>§auth: Option<CommandAuth>Trait Implementations§
Source§impl Clone for CommandAnnotation
impl Clone for CommandAnnotation
Source§fn clone(&self) -> CommandAnnotation
fn clone(&self) -> CommandAnnotation
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 CommandAnnotation
impl Debug for CommandAnnotation
Source§impl Default for CommandAnnotation
impl Default for CommandAnnotation
Source§fn default() -> CommandAnnotation
fn default() -> CommandAnnotation
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommandAnnotation
impl RefUnwindSafe for CommandAnnotation
impl Send for CommandAnnotation
impl Sync for CommandAnnotation
impl Unpin for CommandAnnotation
impl UnsafeUnpin for CommandAnnotation
impl UnwindSafe for CommandAnnotation
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