pub struct ColumnInfo {
pub name: String,
pub column_type: String,
pub is_primary_key: bool,
pub key_position: Option<u16>,
pub is_static: bool,
pub is_clustering: bool,
}Expand description
Information about a column in the table
Fields§
§name: StringColumn name
column_type: StringColumn type (CQL type name)
is_primary_key: boolWhether the column is part of the primary key
key_position: Option<u16>Column position in the primary key (if applicable)
is_static: boolWhether the column is static
is_clustering: boolWhether the column is clustering
Trait Implementations§
Source§impl Clone for ColumnInfo
impl Clone for ColumnInfo
Source§fn clone(&self) -> ColumnInfo
fn clone(&self) -> ColumnInfo
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 ColumnInfo
impl Debug for ColumnInfo
Source§impl<'de> Deserialize<'de> for ColumnInfo
impl<'de> Deserialize<'de> for ColumnInfo
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
Auto Trait Implementations§
impl Freeze for ColumnInfo
impl RefUnwindSafe for ColumnInfo
impl Send for ColumnInfo
impl Sync for ColumnInfo
impl Unpin for ColumnInfo
impl UnsafeUnpin for ColumnInfo
impl UnwindSafe for ColumnInfo
Blanket Implementations§
impl<T> Allocation for T
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