pub struct Field {
pub name: &'static str,
pub ty: TypeTag,
pub docs: &'static str,
pub optional: bool,
}Expand description
One named field of a TypeTag::Record schema.
Fields§
§name: &'static strField key as it appears in the value map.
ty: TypeTagExpected type of the field value. Nests freely.
docs: &'static strWhat the field carries. Hand-registered schemas document every field; fields synthesized from inline spellings carry none.
optional: boolOptional fields (MAP<permit?: PERMIT>) may be absent: missing
optional keys pass, missing required keys fail, extra keys
always fail.
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