pub enum QueryFilterValue {
Variable(String),
Value(QueryVariableValue),
}Variants§
Variable(String)
Value(QueryVariableValue)
Implementations§
Source§impl QueryFilterValue
impl QueryFilterValue
pub fn variable(name: impl Into<String>) -> QueryFilterValue
pub fn value<T>(value: T) -> QueryFilterValuewhere
T: QueryScalar,
Trait Implementations§
Source§impl Clone for QueryFilterValue
impl Clone for QueryFilterValue
Source§fn clone(&self) -> QueryFilterValue
fn clone(&self) -> QueryFilterValue
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 moreSource§impl Debug for QueryFilterValue
impl Debug for QueryFilterValue
Source§impl<T> From<T> for QueryFilterValuewhere
T: QueryScalar,
impl<T> From<T> for QueryFilterValuewhere
T: QueryScalar,
Source§fn from(value: T) -> QueryFilterValue
fn from(value: T) -> QueryFilterValue
Converts to this type from the input type.
Source§impl PartialEq for QueryFilterValue
impl PartialEq for QueryFilterValue
Source§fn eq(&self, other: &QueryFilterValue) -> bool
fn eq(&self, other: &QueryFilterValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QueryFilterValue
Auto Trait Implementations§
impl Freeze for QueryFilterValue
impl RefUnwindSafe for QueryFilterValue
impl Send for QueryFilterValue
impl Sync for QueryFilterValue
impl Unpin for QueryFilterValue
impl UnsafeUnpin for QueryFilterValue
impl UnwindSafe for QueryFilterValue
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<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