pub trait GraphqlOperation<T>: Expressive<T> {
// Provided methods
fn eq(&self, value: impl Into<AnyGraphqlType>) -> GraphqlCondition
where Self: Sized { ... }
fn ne(&self, value: impl Into<AnyGraphqlType>) -> GraphqlCondition
where Self: Sized { ... }
fn gt(&self, value: impl Into<AnyGraphqlType>) -> GraphqlCondition
where Self: Sized { ... }
fn gte(&self, value: impl Into<AnyGraphqlType>) -> GraphqlCondition
where Self: Sized { ... }
fn lt(&self, value: impl Into<AnyGraphqlType>) -> GraphqlCondition
where Self: Sized { ... }
fn lte(&self, value: impl Into<AnyGraphqlType>) -> GraphqlCondition
where Self: Sized { ... }
fn in_<I, V>(&self, values: I) -> GraphqlCondition
where Self: Sized,
I: IntoIterator<Item = V>,
V: Into<AnyGraphqlType> { ... }
fn not_in<I, V>(&self, values: I) -> GraphqlCondition
where Self: Sized,
I: IntoIterator<Item = V>,
V: Into<AnyGraphqlType> { ... }
fn like(&self, pattern: impl Into<String>) -> GraphqlCondition
where Self: Sized { ... }
fn ilike(&self, pattern: impl Into<String>) -> GraphqlCondition
where Self: Sized { ... }
fn is_null(&self) -> GraphqlCondition
where Self: Sized { ... }
fn is_not_null(&self) -> GraphqlCondition
where Self: Sized { ... }
}Expand description
GraphQL operators that produce a GraphqlCondition.
Blanket-impl’d for any Expressive<T>. Import this trait alongside
your column types when writing GraphQL filters; don’t mix it with
vantage_table::operation::Operation in the same scope (which would
shadow these methods with raw-expression versions).
Provided Methods§
Sourcefn eq(&self, value: impl Into<AnyGraphqlType>) -> GraphqlConditionwhere
Self: Sized,
fn eq(&self, value: impl Into<AnyGraphqlType>) -> GraphqlConditionwhere
Self: Sized,
field = value
Sourcefn ne(&self, value: impl Into<AnyGraphqlType>) -> GraphqlConditionwhere
Self: Sized,
fn ne(&self, value: impl Into<AnyGraphqlType>) -> GraphqlConditionwhere
Self: Sized,
field != value
Sourcefn gt(&self, value: impl Into<AnyGraphqlType>) -> GraphqlConditionwhere
Self: Sized,
fn gt(&self, value: impl Into<AnyGraphqlType>) -> GraphqlConditionwhere
Self: Sized,
field > value
Sourcefn gte(&self, value: impl Into<AnyGraphqlType>) -> GraphqlConditionwhere
Self: Sized,
fn gte(&self, value: impl Into<AnyGraphqlType>) -> GraphqlConditionwhere
Self: Sized,
field >= value
Sourcefn lt(&self, value: impl Into<AnyGraphqlType>) -> GraphqlConditionwhere
Self: Sized,
fn lt(&self, value: impl Into<AnyGraphqlType>) -> GraphqlConditionwhere
Self: Sized,
field < value
Sourcefn lte(&self, value: impl Into<AnyGraphqlType>) -> GraphqlConditionwhere
Self: Sized,
fn lte(&self, value: impl Into<AnyGraphqlType>) -> GraphqlConditionwhere
Self: Sized,
field <= value
Sourcefn in_<I, V>(&self, values: I) -> GraphqlCondition
fn in_<I, V>(&self, values: I) -> GraphqlCondition
field IN [values...]
Sourcefn not_in<I, V>(&self, values: I) -> GraphqlCondition
fn not_in<I, V>(&self, values: I) -> GraphqlCondition
field NOT IN [values...]
Sourcefn like(&self, pattern: impl Into<String>) -> GraphqlConditionwhere
Self: Sized,
fn like(&self, pattern: impl Into<String>) -> GraphqlConditionwhere
Self: Sized,
field LIKE pattern — case-sensitive substring match.
Sourcefn ilike(&self, pattern: impl Into<String>) -> GraphqlConditionwhere
Self: Sized,
fn ilike(&self, pattern: impl Into<String>) -> GraphqlConditionwhere
Self: Sized,
field ILIKE pattern — case-insensitive substring match.
Sourcefn is_null(&self) -> GraphqlConditionwhere
Self: Sized,
fn is_null(&self) -> GraphqlConditionwhere
Self: Sized,
field IS NULL
Sourcefn is_not_null(&self) -> GraphqlConditionwhere
Self: Sized,
fn is_not_null(&self) -> GraphqlConditionwhere
Self: Sized,
field IS NOT NULL
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<T, S: Expressive<T>> GraphqlOperation<T> for S
Blanket: any Expressive<T> gets GraphqlOperation<T> for free.