Enum scylladb_parse::Relation
source · [−]pub enum Relation {
Normal {
column: Name,
operator: Operator,
term: Term,
},
Tuple {
columns: Vec<Name>,
operator: Operator,
tuple_literal: TupleLiteral,
},
Token {
columns: Vec<Name>,
operator: Operator,
term: Term,
},
MVExclusion {
column: Name,
},
}Variants
Normal
Tuple
Token
MVExclusion
Fields
column: NameImplementations
sourceimpl Relation
impl Relation
pub fn normal(
column: impl Into<Name>,
operator: Operator,
term: impl Into<Term>
) -> Self
pub fn tuple(
columns: Vec<impl Into<Name>>,
operator: Operator,
tuple_literal: Vec<impl Into<Term>>
) -> Self
pub fn token(
columns: Vec<impl Into<Name>>,
operator: Operator,
term: impl Into<Term>
) -> Self
pub fn is_not_null(column: impl Into<Name>) -> Self
Trait Implementations
sourceimpl<'a> CustomToTokens<'a> for Relation
impl<'a> CustomToTokens<'a> for Relation
fn to_tokens(&'a self, tokens: &mut TokenStream)
sourceimpl ToTokens for Relation
impl ToTokens for Relation
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 Relation
impl StructuralEq for Relation
impl StructuralPartialEq for Relation
Auto Trait Implementations
impl RefUnwindSafe for Relation
impl Send for Relation
impl Sync for Relation
impl Unpin for Relation
impl UnwindSafe for Relation
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