pub struct FieldSpec {
pub name: String,
pub ty: FieldType,
pub optional: bool,
}Expand description
FieldSpec describes the characteristics of a particular field.
Fields§
§name: StringThe name of field. e.g. the age of a Person element
ty: FieldType§optional: boolWhether this field is optional for given element
Trait Implementations§
impl Eq for FieldSpec
impl StructuralPartialEq for FieldSpec
Auto Trait Implementations§
impl Freeze for FieldSpec
impl RefUnwindSafe for FieldSpec
impl Send for FieldSpec
impl Sync for FieldSpec
impl Unpin for FieldSpec
impl UnwindSafe for FieldSpec
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