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, as advertised to clients.
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§impl Debug for OperatorInfo
impl Debug for OperatorInfo
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 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