pub struct ModelField {
pub name: String,
pub ty: ModelType,
pub optional: bool,
pub default_value: Option<String>,
}Fields§
§name: String§ty: ModelType§optional: bool§default_value: Option<String>Trait Implementations§
Source§impl Clone for ModelField
impl Clone for ModelField
Source§impl Debug for ModelField
impl Debug for ModelField
Source§impl<'de> Deserialize<'de> for ModelField
impl<'de> Deserialize<'de> for ModelField
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ModelField
impl PartialEq for ModelField
Source§impl Serialize for ModelField
impl Serialize for ModelField
impl StructuralPartialEq for ModelField
Auto Trait Implementations§
impl Freeze for ModelField
impl RefUnwindSafe for ModelField
impl Send for ModelField
impl Sync for ModelField
impl Unpin for ModelField
impl UnsafeUnpin 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