pub struct BaseMetaDataColumn {
pub flags: BitFlags<ColumnFlag>,
pub ty: TypeInfo,
}Expand description
Describes the type and flags of a column, exposing metadata such as the column type (including size, precision and scale), whether the column is nullable and whether it is an identity column.
Fields§
§flags: BitFlags<ColumnFlag>The set of ColumnFlags describing the column (nullability, identity,
updateability, and so on).
ty: TypeInfoThe type of the column, including its size, precision and scale where applicable.
Implementations§
Source§impl BaseMetaDataColumn
impl BaseMetaDataColumn
Sourcepub fn ty(&self) -> &TypeInfo
pub fn ty(&self) -> &TypeInfo
The type of the column, including its size, precision and scale where applicable.
Sourcepub fn flags(&self) -> BitFlags<ColumnFlag>
pub fn flags(&self) -> BitFlags<ColumnFlag>
The set of flags describing the column.
Sourcepub fn is_nullable(&self) -> bool
pub fn is_nullable(&self) -> bool
true if the column accepts NULL values.
Sourcepub fn is_identity(&self) -> bool
pub fn is_identity(&self) -> bool
true if the column is an identity column.
Sourcepub fn is_updateable(&self) -> bool
pub fn is_updateable(&self) -> bool
true if the column is writeable (e.g. usable as a bulk-insert target).
Trait Implementations§
Source§impl Clone for BaseMetaDataColumn
impl Clone for BaseMetaDataColumn
Source§fn clone(&self) -> BaseMetaDataColumn
fn clone(&self) -> BaseMetaDataColumn
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 moreAuto Trait Implementations§
impl Freeze for BaseMetaDataColumn
impl RefUnwindSafe for BaseMetaDataColumn
impl Send for BaseMetaDataColumn
impl Sync for BaseMetaDataColumn
impl Unpin for BaseMetaDataColumn
impl UnsafeUnpin for BaseMetaDataColumn
impl UnwindSafe for BaseMetaDataColumn
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