pub struct Field {
pub name: String,
pub data_type: DataType,
pub nullable: bool,
}Expand description
One column’s name and type.
Fields§
§name: StringWhat the column is called.
data_type: DataTypeWhat it holds.
nullable: boolWhether it may hold nulls. Everything a query produces may, so this is true unless somebody building a schema by hand says otherwise.
Implementations§
Trait Implementations§
impl Eq for Field
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 UnsafeUnpin 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