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§
Implementations§
Source§impl 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§
Source§impl<'a> CustomToTokens<'a> for Relation
impl<'a> CustomToTokens<'a> for Relation
Source§impl ToTokens for Relation
impl ToTokens for Relation
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl Eq for Relation
impl StructuralPartialEq for Relation
Auto Trait Implementations§
impl Freeze for Relation
impl RefUnwindSafe for Relation
impl Send for Relation
impl Sync for Relation
impl Unpin for Relation
impl UnwindSafe for Relation
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