Struct schema::InputField 
source · pub struct InputField<'a> {
    pub name: Cow<'a, str>,
    pub default_value: Option<DefaultKind>,
    /* private fields */
}Fields§
§name: Cow<'a, str>§default_value: Option<DefaultKind>Implementations§
source§impl<'a> InputField<'a>
 
impl<'a> InputField<'a>
pub fn field_types(&self) -> &[InputType<'a>]
sourcepub fn is_required(&self) -> bool
 
pub fn is_required(&self) -> bool
Indicates if the presence of the field on the higher input objects is required, but doesn’t state whether or not the input can be null.
Trait Implementations§
source§impl<'a> Clone for InputField<'a>
 
impl<'a> Clone for InputField<'a>
source§fn clone(&self) -> InputField<'a>
 
fn clone(&self) -> InputField<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreAuto Trait Implementations§
impl<'a> !RefUnwindSafe for InputField<'a>
impl<'a> Send for InputField<'a>
impl<'a> Sync for InputField<'a>
impl<'a> Unpin for InputField<'a>
impl<'a> !UnwindSafe for InputField<'a>
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