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§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<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
Source§impl FromSchema for CommandBody
impl FromSchema for CommandBody
fn from_value(value: &SchemaValue) -> Result<Self, 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
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