pub struct Field {
pub name: &'static str,
pub ty: ValueType,
pub default: Option<Value>,
pub doc: &'static str,
}Expand description
A named, typed value: a command argument or a node attribute.
Fields§
§name: &'static strThe name.
ty: ValueTypeThe type.
default: Option<Value>The value used when none is given; None makes an argument
required.
doc: &'static strWhat it means.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Forget for Field
impl Freeze for Field
impl Move for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnsafeUnpin for Field
impl UnwindSafe for Field
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