pub struct WhereOperatorSpec {
pub name: &'static str,
pub aliases: &'static [&'static str],
pub sql_op: &'static str,
pub category: OperatorCategory,
pub requires_array: bool,
pub jsonb_operator: bool,
}Expand description
Everything known about one WHERE operator.
Fields§
§name: &'static strCanonical GraphQL name (e.g. "eq").
aliases: &'static [&'static str]Accepted alternative spellings (e.g. "ne" for "neq").
sql_op: &'static strSQL operator or function template, for documentation.
category: OperatorCategoryFamily this operator belongs to.
requires_array: boolWhether the operand must be a list.
jsonb_operator: boolWhether the operator works on the JSONB value rather than its text form.
Implementations§
Trait Implementations§
Source§impl Clone for WhereOperatorSpec
impl Clone for WhereOperatorSpec
Source§fn clone(&self) -> WhereOperatorSpec
fn clone(&self) -> WhereOperatorSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WhereOperatorSpec
Source§impl Debug for WhereOperatorSpec
impl Debug for WhereOperatorSpec
Source§impl From<&'static WhereOperatorSpec> for OperatorInfo
impl From<&'static WhereOperatorSpec> for OperatorInfo
Source§fn from(spec: &'static WhereOperatorSpec) -> Self
fn from(spec: &'static WhereOperatorSpec) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WhereOperatorSpec
impl RefUnwindSafe for WhereOperatorSpec
impl Send for WhereOperatorSpec
impl Sync for WhereOperatorSpec
impl Unpin for WhereOperatorSpec
impl UnsafeUnpin for WhereOperatorSpec
impl UnwindSafe for WhereOperatorSpec
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