pub struct Field { /* private fields */ }Expand description
A field definition
Implementations§
Source§impl Field
impl Field
Sourcepub fn data_type(&self) -> &SqliteDataType
pub fn data_type(&self) -> &SqliteDataType
The sqlite data type.
Sourcepub fn primary_key(&self) -> &Option<bool>
pub fn primary_key(&self) -> &Option<bool>
Is this field a primary key?
Source§impl Field
impl Field
Sourcepub fn set_data_type(&mut self, val: SqliteDataType) -> &mut Self
pub fn set_data_type(&mut self, val: SqliteDataType) -> &mut Self
The sqlite data type.
Sourcepub fn set_primary_key(&mut self, val: Option<bool>) -> &mut Self
pub fn set_primary_key(&mut self, val: Option<bool>) -> &mut Self
Is this field a primary key?
Sourcepub fn set_not_null(&mut self, val: Option<bool>) -> &mut Self
pub fn set_not_null(&mut self, val: Option<bool>) -> &mut Self
Is this field non-null?
Sourcepub fn set_unique(&mut self, val: Option<bool>) -> &mut Self
pub fn set_unique(&mut self, val: Option<bool>) -> &mut Self
Is this field part of the unique index?
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
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