pub struct CustomOperator { /* private fields */ }Expand description
Trusted server-side SQL template for a custom operator.
Implementations§
Source§impl CustomOperator
impl CustomOperator
pub fn new( name: &'static str, template: &'static str, arity: u8, ) -> Result<CustomOperator, ConfigError>
Sourcepub fn exists(
name: &'static str,
template: &'static str,
arity: u8,
) -> Result<CustomOperator, ConfigError>
pub fn exists( name: &'static str, template: &'static str, arity: u8, ) -> Result<CustomOperator, ConfigError>
Declares a trusted correlated EXISTS (SELECT ...) relation filter.
The complete SQL fragment is server-owned; all {0} values remain
bound parameters and {field} is replaced by the selected outer field.
Sourcepub fn not_exists(
name: &'static str,
template: &'static str,
arity: u8,
) -> Result<CustomOperator, ConfigError>
pub fn not_exists( name: &'static str, template: &'static str, arity: u8, ) -> Result<CustomOperator, ConfigError>
Declares a trusted correlated NOT EXISTS (SELECT ...) relation filter.
Sourcepub fn typed(
name: &'static str,
template: &'static str,
arity: u8,
field_type: ValueType,
input_type: ValueType,
) -> Result<CustomOperator, ConfigError>
pub fn typed( name: &'static str, template: &'static str, arity: u8, field_type: ValueType, input_type: ValueType, ) -> Result<CustomOperator, ConfigError>
A trusted operator with distinct field/result and query input types.
pub const fn types(self) -> Option<(ValueType, ValueType)>
pub const fn name(self) -> &'static str
pub const fn template(self) -> &'static str
pub const fn arity(self) -> u8
pub const fn is_exists(self) -> bool
pub const fn is_not_exists(self) -> bool
Trait Implementations§
Source§impl Clone for CustomOperator
impl Clone for CustomOperator
Source§fn clone(&self) -> CustomOperator
fn clone(&self) -> CustomOperator
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 CustomOperator
Source§impl Debug for CustomOperator
impl Debug for CustomOperator
impl Eq for CustomOperator
Source§impl Hash for CustomOperator
impl Hash for CustomOperator
Source§impl PartialEq for CustomOperator
impl PartialEq for CustomOperator
impl StructuralPartialEq for CustomOperator
Auto Trait Implementations§
impl Freeze for CustomOperator
impl RefUnwindSafe for CustomOperator
impl Send for CustomOperator
impl Sync for CustomOperator
impl Unpin for CustomOperator
impl UnsafeUnpin for CustomOperator
impl UnwindSafe for CustomOperator
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more