Struct atter::Field
[−]
[src]
pub struct Field { /* fields omitted */ }
A field definition
Methods
impl Field
[src]
pub fn name(&self) -> &String
[src]
The field name.
pub fn data_type(&self) -> &SqliteDataType
[src]
The sqlite data type.
pub fn primary_key(&self) -> &Option<bool>
[src]
Is this field a primary key?
pub fn not_null(&self) -> &Option<bool>
[src]
Is this field non-null?
pub fn unique(&self) -> &Option<bool>
[src]
Is this field part of the unique index?
impl Field
[src]
pub fn set_name(&mut self, val: String)
[src]
The field name.
pub fn set_data_type(&mut self, val: SqliteDataType)
[src]
The sqlite data type.
pub fn set_primary_key(&mut self, val: Option<bool>)
[src]
Is this field a primary key?
pub fn set_not_null(&mut self, val: Option<bool>)
[src]
Is this field non-null?
pub fn set_unique(&mut self, val: Option<bool>)
[src]
Is this field part of the unique index?
Trait Implementations
impl Clone for Field
[src]
fn clone(&self) -> Field
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Field
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more