Struct tc_table::TableSchema [−][src]
pub struct TableSchema { /* fields omitted */ }
The schema of a Table
.
Implementations
impl TableSchema
[src]
impl TableSchema
[src]pub fn new<I: IntoIterator<Item = (Id, Vec<Id>)>>(
primary: IndexSchema,
indices: I
) -> Self
[src]
primary: IndexSchema,
indices: I
) -> Self
Construct a new Table
schema.
pub fn indices(&self) -> &[(Id, Vec<Id>)]
[src]
Return a list of index names and the names of the columns they index.
pub fn primary(&self) -> &IndexSchema
[src]
Return the IndexSchema
of this TableSchema
’s primary index.
Trait Implementations
impl Clone for TableSchema
[src]
impl Clone for TableSchema
[src]fn clone(&self) -> TableSchema
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for TableSchema
[src]
impl Eq for TableSchema
[src]impl From<IndexSchema> for TableSchema
[src]
impl From<IndexSchema> for TableSchema
[src]fn from(schema: IndexSchema) -> TableSchema
[src]
impl FromStream for TableSchema
[src]
impl FromStream for TableSchema
[src]type Context = ()
The decoding context of this type, useful in situations where the stream to be decoded may be too large to hold in main memory. Read more
fn from_stream<'life0, 'async_trait, D: Decoder>(
cxt: (),
decoder: &'life0 mut D
) -> Pin<Box<dyn Future<Output = Result<Self, D::Error>> + Send + 'async_trait>> where
D: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
cxt: (),
decoder: &'life0 mut D
) -> Pin<Box<dyn Future<Output = Result<Self, D::Error>> + Send + 'async_trait>> where
D: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
impl<'en> IntoStream<'en> for TableSchema
[src]
impl<'en> IntoStream<'en> for TableSchema
[src]impl PartialEq<TableSchema> for TableSchema
[src]
impl PartialEq<TableSchema> for TableSchema
[src]fn eq(&self, other: &TableSchema) -> bool
[src]
fn ne(&self, other: &TableSchema) -> bool
[src]
impl StructuralEq for TableSchema
[src]
impl StructuralEq for TableSchema
[src]impl StructuralPartialEq for TableSchema
[src]
impl StructuralPartialEq for TableSchema
[src]impl TryCastFrom<Value> for TableSchema
[src]
impl TryCastFrom<Value> for TableSchema
[src]fn can_cast_from(value: &Value) -> bool
[src]
fn opt_cast_from(value: Value) -> Option<TableSchema>
[src]
pub fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
[src]
OnErr: FnOnce(&T) -> Err,
Auto Trait Implementations
impl RefUnwindSafe for TableSchema
impl RefUnwindSafe for TableSchema
impl Send for TableSchema
impl Send for TableSchema
impl Sync for TableSchema
impl Sync for TableSchema
impl Unpin for TableSchema
impl Unpin for TableSchema
impl UnwindSafe for TableSchema
impl UnwindSafe for TableSchema
Blanket Implementations
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
[src]
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
[src]pub fn can_cast_from(&F) -> bool
[src]
pub fn opt_cast_from(f: F) -> Option<T>
[src]
pub fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
[src]
OnErr: FnOnce(&T) -> Err,
impl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
[src]
impl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
[src]pub fn can_cast_into(&self) -> bool
[src]
pub fn opt_cast_into(self) -> Option<T>
[src]
pub fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
[src]
OnErr: FnOnce(&Self) -> Err,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,