pub struct ColumnMetadata { /* private fields */ }Expand description
Column metadata.
Implementations§
Source§impl ColumnMetadata
impl ColumnMetadata
Sourcepub fn with_type_label(self, type_label: ColumnTypeLabel) -> Self
pub fn with_type_label(self, type_label: ColumnTypeLabel) -> Self
Sets the type label.
Sourcepub fn with_default(self, default: ColumnDefault) -> Self
pub fn with_default(self, default: ColumnDefault) -> Self
Sets the default label.
Sourcepub const fn with_nullability(self, nullability: Nullability) -> Self
pub const fn with_nullability(self, nullability: Nullability) -> Self
Sets nullability metadata.
Sourcepub const fn with_ordinal(self, ordinal: ColumnOrdinal) -> Self
pub const fn with_ordinal(self, ordinal: ColumnOrdinal) -> Self
Sets the column ordinal.
Sourcepub const fn type_label(&self) -> Option<&ColumnTypeLabel>
pub const fn type_label(&self) -> Option<&ColumnTypeLabel>
Returns the type label.
Sourcepub const fn nullability(&self) -> Nullability
pub const fn nullability(&self) -> Nullability
Returns nullability metadata.
Trait Implementations§
Source§impl Clone for ColumnMetadata
impl Clone for ColumnMetadata
Source§fn clone(&self) -> ColumnMetadata
fn clone(&self) -> ColumnMetadata
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 ColumnMetadata
impl Debug for ColumnMetadata
Source§impl PartialEq for ColumnMetadata
impl PartialEq for ColumnMetadata
Source§fn eq(&self, other: &ColumnMetadata) -> bool
fn eq(&self, other: &ColumnMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ColumnMetadata
impl StructuralPartialEq for ColumnMetadata
Auto Trait Implementations§
impl Freeze for ColumnMetadata
impl RefUnwindSafe for ColumnMetadata
impl Send for ColumnMetadata
impl Sync for ColumnMetadata
impl Unpin for ColumnMetadata
impl UnsafeUnpin for ColumnMetadata
impl UnwindSafe for ColumnMetadata
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