pub struct Input {
pub name: String,
pub ty: String,
pub required: bool,
pub default: Option<String>,
pub choices: Option<Vec<String>>,
}Expand description
A single named input a capability accepts.
Fields§
§name: StringInput name as used on the command line.
ty: StringInput value type (currently always "string").
required: boolWhether the input must be supplied.
default: Option<String>Default value used when the input is omitted, if any.
choices: Option<Vec<String>>Allowed values for constrained inputs, if any.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnsafeUnpin for Input
impl UnwindSafe for Input
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