pub struct Field {
pub name: String,
pub type_name: String,
pub modifiers: Vec<Modifier>,
pub attributes: Vec<Attribute>,
}Fields§
§name: String§type_name: String§modifiers: Vec<Modifier>§attributes: Vec<Attribute>Implementations§
Source§impl Field
impl Field
pub fn get_default_value(&self) -> Option<String>
pub fn get_audit_model(&self) -> Option<String>
pub fn is_sql_default(&self) -> bool
pub fn get_default_from_file(&self) -> Result<String, Box<dyn Error>>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Field
impl<'de> Deserialize<'de> for Field
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
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