pub struct Field {
pub name: &'static str,
pub ty: Type,
pub default: Option<Value>,
}Expand description
One field in the schema.
Fields§
§name: &'static strField name in the output object.
ty: TypeExpected type.
default: Option<Value>Optional default to fill in if the field is missing or uncoercible.
Trait Implementations§
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