pub struct Field {
pub name: String,
pub field_type: SchemaType,
pub optional: bool,
pub metadata: FieldMetadata,
}Fields§
§name: String§field_type: SchemaType§optional: bool§metadata: FieldMetadataImplementations§
Source§impl Field
impl Field
pub fn new(name: impl Into<String>, field_type: SchemaType) -> Self
pub fn optional(self) -> Self
pub fn with_metadata(self, metadata: FieldMetadata) -> Self
Trait Implementations§
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 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