pub struct CommandSchema {
pub name: Arc<str>,
pub kind: CommandKind,
pub source_kind: CommandSourceKind,
pub mode_mask: CommandModeMask,
pub return_behavior: ReturnBehavior,
pub flags: Arc<[FlagSchema]>,
pub positionals: PositionalSchema,
}Fields§
§name: Arc<str>§kind: CommandKind§source_kind: CommandSourceKind§mode_mask: CommandModeMask§return_behavior: ReturnBehavior§flags: Arc<[FlagSchema]>§positionals: PositionalSchemaImplementations§
Source§impl CommandSchema
impl CommandSchema
pub fn validate( self, ) -> Result<ValidatedCommandSchema, CommandSchemaValidationError>
Trait Implementations§
Source§impl Clone for CommandSchema
impl Clone for CommandSchema
Source§fn clone(&self) -> CommandSchema
fn clone(&self) -> CommandSchema
Returns a duplicate of the value. Read more
1.0.0 · 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 CommandSchema
impl Debug for CommandSchema
Source§impl PartialEq for CommandSchema
impl PartialEq for CommandSchema
Source§impl TryFrom<CommandSchema> for ValidatedCommandSchema
impl TryFrom<CommandSchema> for ValidatedCommandSchema
Source§type Error = CommandSchemaValidationError
type Error = CommandSchemaValidationError
The type returned in the event of a conversion error.
impl Eq for CommandSchema
impl StructuralPartialEq for CommandSchema
Auto Trait Implementations§
impl Freeze for CommandSchema
impl RefUnwindSafe for CommandSchema
impl Send for CommandSchema
impl Sync for CommandSchema
impl Unpin for CommandSchema
impl UnsafeUnpin for CommandSchema
impl UnwindSafe for CommandSchema
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