pub struct CommandBody {
pub positionals: Positionals,
pub options: Vec<OptionSpec>,
pub flags: Vec<FlagSpec>,
pub constraints: Vec<Constraint>,
pub stdin: Option<StreamSpec>,
pub stdout: Option<StreamSpec>,
pub stderr: Option<StreamSpec>,
pub result: Option<ResultSpec>,
pub errors: Vec<ErrorCase>,
pub annotations: Option<CommandAnnotations>,
}Fields§
§positionals: Positionals§options: Vec<OptionSpec>§flags: Vec<FlagSpec>§constraints: Vec<Constraint>§stdin: Option<StreamSpec>§stdout: Option<StreamSpec>§stderr: Option<StreamSpec>§result: Option<ResultSpec>§errors: Vec<ErrorCase>§annotations: Option<CommandAnnotations>Trait Implementations§
Source§impl Clone for CommandBody
impl Clone for CommandBody
Source§fn clone(&self) -> CommandBody
fn clone(&self) -> CommandBody
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 CommandBody
impl Debug for CommandBody
Source§impl<'de> Deserialize<'de> for CommandBody
impl<'de> Deserialize<'de> for CommandBody
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromSchema for CommandBody
impl FromSchema for CommandBody
fn from_value(value: &SchemaValue) -> Result<CommandBody, FromSchemaError>
Source§impl IntoSchema for CommandBody
impl IntoSchema for CommandBody
fn type_id() -> TypeId
fn register_in(builder: &mut SchemaBuilder) -> SchemaType
fn to_value(&self) -> SchemaValue
Source§impl PartialEq for CommandBody
impl PartialEq for CommandBody
Source§impl Serialize for CommandBody
impl Serialize for CommandBody
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CommandBody
Auto Trait Implementations§
impl Freeze for CommandBody
impl RefUnwindSafe for CommandBody
impl Send for CommandBody
impl Sync for CommandBody
impl Unpin for CommandBody
impl UnsafeUnpin for CommandBody
impl UnwindSafe for CommandBody
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