#[non_exhaustive]pub struct Column {
pub name: String,
pub cql_type: CqlType,
pub role: ColumnRole,
pub is_static: bool,
pub masked: bool,
pub span: Span,
}Expand description
A table column.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringNormalized column name.
cql_type: CqlTypeThe declared type.
role: ColumnRolePosition in the primary key.
is_static: boolDeclared STATIC.
masked: boolDeclared MASKED WITH ... (Cassandra 5.0 dynamic data masking).
span: SpanWhere the column is defined.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Column
Auto Trait Implementations§
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnsafeUnpin for Column
impl UnwindSafe for Column
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