Struct scylladb_parse::ColumnDefinition
source · [−]pub struct ColumnDefinition {
pub name: Name,
pub data_type: CqlType,
pub static_column: bool,
pub primary_key: bool,
}Fields
name: Namedata_type: CqlTypestatic_column: boolprimary_key: boolImplementations
sourceimpl ColumnDefinition
impl ColumnDefinition
pub fn build() -> ColumnDefinitionBuilder
Trait Implementations
sourceimpl Clone for ColumnDefinition
impl Clone for ColumnDefinition
sourcefn clone(&self) -> ColumnDefinition
fn clone(&self) -> ColumnDefinition
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'a> CustomToTokens<'a> for ColumnDefinition
impl<'a> CustomToTokens<'a> for ColumnDefinition
fn to_tokens(&'a self, tokens: &mut TokenStream)
sourceimpl Debug for ColumnDefinition
impl Debug for ColumnDefinition
sourceimpl Display for ColumnDefinition
impl Display for ColumnDefinition
sourceimpl<T: Into<Name>> From<(T, NativeType)> for ColumnDefinition
impl<T: Into<Name>> From<(T, NativeType)> for ColumnDefinition
sourcefn from((name, data_type): (T, NativeType)) -> Self
fn from((name, data_type): (T, NativeType)) -> Self
Converts to this type from the input type.
sourceimpl Parse for ColumnDefinition
impl Parse for ColumnDefinition
type Output = ColumnDefinition
fn parse(s: &mut StatementStream<'_>) -> Result<Self>
sourceimpl PartialEq<ColumnDefinition> for ColumnDefinition
impl PartialEq<ColumnDefinition> for ColumnDefinition
sourcefn eq(&self, other: &ColumnDefinition) -> bool
fn eq(&self, other: &ColumnDefinition) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ColumnDefinition) -> bool
fn ne(&self, other: &ColumnDefinition) -> bool
This method tests for !=.
sourceimpl ToTokens for ColumnDefinition
impl ToTokens for ColumnDefinition
sourcefn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Write self to the given TokenStream. Read more
sourcefn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Convert self directly into a TokenStream object. Read more
sourcefn into_token_stream(self) -> TokenStream
fn into_token_stream(self) -> TokenStream
Convert self directly into a TokenStream object. Read more
impl Eq for ColumnDefinition
impl StructuralEq for ColumnDefinition
impl StructuralPartialEq for ColumnDefinition
Auto Trait Implementations
impl RefUnwindSafe for ColumnDefinition
impl Send for ColumnDefinition
impl Sync for ColumnDefinition
impl Unpin for ColumnDefinition
impl UnwindSafe for ColumnDefinition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more