pub struct Field {
pub name: String,
pub attributes: FieldAttributes,
}Expand description
Field of a Table
Fields§
§name: String§attributes: FieldAttributesImplementations§
Source§impl Field
impl Field
Sourcepub fn new(name: &str, attrs: &FieldAttributes) -> Self
pub fn new(name: &str, attrs: &FieldAttributes) -> Self
Initialize Field named name with FieldAttributes
Sourcepub fn new_only_db(name: &str, attrs: &FieldAttributes) -> Self
pub fn new_only_db(name: &str, attrs: &FieldAttributes) -> Self
Initialize Field named name with FieldAttributes with only_db attributes on
Trait Implementations§
Source§impl DBObject for Field
impl DBObject for Field
fn to_sql(&self, type_writer: &dyn TypeWriter) -> String
fn is_top_level(&self) -> bool
fn top_level_to_sql( &self, _type_writer: &dyn TypeWriter, _delayed: &Vec<&Box<&dyn DBObject>>, ) -> String
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
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