pub struct ModelField {
pub name: String,
pub field_type: String,
pub documentation: Option<String>,
pub optional: bool,
}Expand description
Model field information
Fields§
§name: StringField name
field_type: StringField type
documentation: Option<String>Field documentation
optional: boolWhether field is optional
Trait Implementations§
Source§impl Clone for ModelField
impl Clone for ModelField
Source§fn clone(&self) -> ModelField
fn clone(&self) -> ModelField
Returns a duplicate 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 Freeze for ModelField
impl RefUnwindSafe for ModelField
impl Send for ModelField
impl Sync for ModelField
impl Unpin for ModelField
impl UnwindSafe for ModelField
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