pub struct Field { /* private fields */ }Expand description
One scalar property of a flat JSON body.
Implementations§
Source§impl Field
impl Field
pub fn name(&self) -> &str
pub fn flag(&self) -> &str
Sourcepub fn renamed(&self) -> bool
pub fn renamed(&self) -> bool
The flag is not the plain kebab-case of the wire name, because that name was already taken in this subcommand.
pub fn required(&self) -> bool
pub fn scalar(&self) -> &Scalar
pub fn description(&self) -> Option<&str>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Field
impl<'de> Deserialize<'de> for Field
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
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze 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