pub struct Positional {
pub name: String,
pub doc: Doc,
pub value_name: Option<String>,
pub type_: i32,
pub default: Option<SchemaValueTree>,
pub required: bool,
pub accepts_stdio: bool,
}Fields§
§name: String§doc: Doc§value_name: Option<String>§type_: i32Index into tool.schema.
default: Option<SchemaValueTree>Default value, interpreted against %type in tool.schema.
required: bool§accepts_stdio: boolIf true, the positional’s value may be read from standard input
(e.g. grep’s trailing files accepting piped input).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Positional
impl RefUnwindSafe for Positional
impl Send for Positional
impl Sync for Positional
impl Unpin for Positional
impl UnsafeUnpin for Positional
impl UnwindSafe for Positional
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