pub struct OperatorInfo {
pub name: &'static str,
pub sql_op: &'static str,
pub category: OperatorCategory,
pub requires_array: bool,
pub jsonb_operator: bool,
}Expand description
Information about a single operator
Fields§
§name: &'static strGraphQL operator name (e.g., “eq”, “contains”)
sql_op: &'static strSQL operator or function (e.g., “=”, “LIKE”, “@>”)
category: OperatorCategoryCategory of operator
requires_array: boolWhether this operator expects an array value
jsonb_operator: boolWhether this operator needs special JSONB handling
Trait Implementations§
Source§impl Clone for OperatorInfo
impl Clone for OperatorInfo
Source§fn clone(&self) -> OperatorInfo
fn clone(&self) -> OperatorInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OperatorInfo
impl RefUnwindSafe for OperatorInfo
impl Send for OperatorInfo
impl Sync for OperatorInfo
impl Unpin for OperatorInfo
impl UnsafeUnpin for OperatorInfo
impl UnwindSafe for OperatorInfo
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