pub struct DbColumnDescription {
pub name: String,
pub db_type: DbType,
pub nullable: bool,
}Expand description
One column of an introspected table (see DbTableDescriptor).
Fields§
§name: StringThe column’s name.
db_type: DbTypeThe column’s storage class, mapped from the backend’s native type
(or DbType::Other if it falls outside the engine’s vocabulary).
nullable: boolWhether the column permits SQL NULL.
Trait Implementations§
Source§impl Clone for DbColumnDescription
impl Clone for DbColumnDescription
Source§fn clone(&self) -> DbColumnDescription
fn clone(&self) -> DbColumnDescription
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DbColumnDescription
impl Debug for DbColumnDescription
impl Eq for DbColumnDescription
Source§impl PartialEq for DbColumnDescription
impl PartialEq for DbColumnDescription
Source§fn eq(&self, other: &DbColumnDescription) -> bool
fn eq(&self, other: &DbColumnDescription) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DbColumnDescription
Auto Trait Implementations§
impl Freeze for DbColumnDescription
impl RefUnwindSafe for DbColumnDescription
impl Send for DbColumnDescription
impl Sync for DbColumnDescription
impl Unpin for DbColumnDescription
impl UnsafeUnpin for DbColumnDescription
impl UnwindSafe for DbColumnDescription
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