pub struct ColumnId {
pub table: TableId,
pub index: usize,
}Expand description
Uniquely identifies a column within a schema.
A ColumnId combines the TableId of the owning table with the column’s
positional index within that table’s column list.
§Examples
ⓘ
use toasty_core::schema::db::{ColumnId, TableId};
let id = ColumnId { table: TableId(0), index: 2 };
assert_eq!(id.index, 2);Fields§
§table: TableIdThe table this column belongs to.
index: usizeZero-based position of this column in the table’s column list.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ColumnId
impl<'de> Deserialize<'de> for ColumnId
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 From<ColumnId> for ExprColumn
impl From<ColumnId> for ExprColumn
Source§impl From<ColumnId> for ExprReference
impl From<ColumnId> for ExprReference
Source§impl From<ColumnId> for Projection
impl From<ColumnId> for Projection
impl Copy for ColumnId
impl Eq for ColumnId
impl StructuralPartialEq for ColumnId
Auto Trait Implementations§
impl Freeze for ColumnId
impl RefUnwindSafe for ColumnId
impl Send for ColumnId
impl Sync for ColumnId
impl Unpin for ColumnId
impl UnwindSafe for ColumnId
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.