pub struct TableMetadata { /* private fields */ }Expand description
Table metadata.
Implementations§
Source§impl TableMetadata
impl TableMetadata
Sourcepub const fn new(reference: TableRef) -> TableMetadata
pub const fn new(reference: TableRef) -> TableMetadata
Creates table metadata.
Sourcepub const fn with_kind(self, kind: TableKind) -> TableMetadata
pub const fn with_kind(self, kind: TableKind) -> TableMetadata
Sets the table kind.
Sourcepub const fn with_status(self, status: TableStatus) -> TableMetadata
pub const fn with_status(self, status: TableStatus) -> TableMetadata
Sets the table status.
Sourcepub const fn with_stats(self, stats: TableStats) -> TableMetadata
pub const fn with_stats(self, stats: TableStats) -> TableMetadata
Sets table statistics.
Sourcepub const fn status(&self) -> TableStatus
pub const fn status(&self) -> TableStatus
Returns the table status.
Sourcepub const fn stats(&self) -> TableStats
pub const fn stats(&self) -> TableStats
Returns the table statistics.
Trait Implementations§
Source§impl Clone for TableMetadata
impl Clone for TableMetadata
Source§fn clone(&self) -> TableMetadata
fn clone(&self) -> TableMetadata
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 TableMetadata
impl Debug for TableMetadata
Source§impl PartialEq for TableMetadata
impl PartialEq for TableMetadata
Source§fn eq(&self, other: &TableMetadata) -> bool
fn eq(&self, other: &TableMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TableMetadata
impl StructuralPartialEq for TableMetadata
Auto Trait Implementations§
impl Freeze for TableMetadata
impl RefUnwindSafe for TableMetadata
impl Send for TableMetadata
impl Sync for TableMetadata
impl Unpin for TableMetadata
impl UnsafeUnpin for TableMetadata
impl UnwindSafe for TableMetadata
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