pub struct Table { /* private fields */ }
Implementations§
Source§impl Table
impl Table
Sourcepub fn set_column(&mut self, column: Column) -> &mut Table
pub fn set_column(&mut self, column: Column) -> &mut Table
Add a new column to the table
Sourcepub fn index_by_column_name(&self, column_name: Arc<String>) -> Option<Index>
pub fn index_by_column_name(&self, column_name: Arc<String>) -> Option<Index>
Find an index by column name
Sourcepub fn index_by_column(&self, column: &Column) -> Option<Index>
pub fn index_by_column(&self, column: &Column) -> Option<Index>
Find an index by column
Sourcepub fn primary_key_count(&self) -> usize
pub fn primary_key_count(&self) -> usize
Get number of primary keys
Sourcepub fn primary_key(&self) -> Option<Arc<String>>
pub fn primary_key(&self) -> Option<Arc<String>>
Get primary key, or first primary key column name
Sourcepub fn primary_key_column(&self) -> Option<Arc<Column>>
pub fn primary_key_column(&self) -> Option<Arc<Column>>
Get primary key column or first primary key column
Sourcepub fn primary_keys(&self) -> Iter<'_, Arc<String>>
pub fn primary_keys(&self) -> Iter<'_, Arc<String>>
Get primary keys iterator
Sourcepub fn primary_key_columns(&self) -> Vec<Arc<Column>>
pub fn primary_key_columns(&self) -> Vec<Arc<Column>>
Get primary key columns
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Table
impl<'de> Deserialize<'de> for Table
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl WithMetadata for Table
impl WithMetadata for Table
Source§fn get_metadata_mut(&mut self) -> &mut HashMap<String, String>
fn get_metadata_mut(&mut self) -> &mut HashMap<String, String>
Borrow metadata container for writing
Source§fn set_meta(
&mut self,
meta_key: impl ToString,
meta_value: impl ToString,
) -> &mut Self
fn set_meta( &mut self, meta_key: impl ToString, meta_value: impl ToString, ) -> &mut Self
Set metadata key value pair
Source§fn set_meta_flag(&mut self, meta_flag: impl ToString) -> &mut Self
fn set_meta_flag(&mut self, meta_flag: impl ToString) -> &mut Self
Set metadata flag
Auto Trait Implementations§
impl Freeze for Table
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnwindSafe for Table
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more