pub struct ArgSpec {
pub name: String,
pub ty: String,
pub description: Option<String>,
pub required: bool,
pub variadic: bool,
pub default: Option<Value>,
pub choices: Option<Vec<Value>>,
pub completer: Option<String>,
}Expand description
A positional argument.
Fields§
§name: String§ty: String§description: Option<String>§required: bool§variadic: bool§default: Option<Value>§choices: Option<Vec<Value>>§completer: Option<String>Shell snippet producing completion values.
Consumed by fdl completions <shell> (follow-up rollout task).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ArgSpec
impl<'de> Deserialize<'de> for ArgSpec
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
Auto Trait Implementations§
impl Freeze for ArgSpec
impl RefUnwindSafe for ArgSpec
impl Send for ArgSpec
impl Sync for ArgSpec
impl Unpin for ArgSpec
impl UnsafeUnpin for ArgSpec
impl UnwindSafe for ArgSpec
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