pub struct ConditionBuilder<T: TableType + 'static>(/* private fields */);Expand description
For building and chaining query conditions.
Implementations§
Source§impl<T: TableType + 'static> ConditionBuilder<T>
impl<T: TableType + 'static> ConditionBuilder<T>
Sourcepub fn by<I: IndexType + 'static>(index: &Index<T, I>, value: I) -> Self
pub fn by<I: IndexType + 'static>(index: &Index<T, I>, value: I) -> Self
Creates a new query condition using the specified index and value.
§Arguments
index- The index to use for the query.value- The value to search for in the index.
Sourcepub fn and(left: Self, right: Self) -> Self
pub fn and(left: Self, right: Self) -> Self
Creates a new query condition representing the logical AND of two existing conditions.
§Arguments
left- The left-hand side condition.right- The right-hand side condition.
Sourcepub fn or(left: Self, right: Self) -> Self
pub fn or(left: Self, right: Self) -> Self
Creates a new query condition representing the logical OR of two existing conditions.
§Arguments
left- The left-hand side condition.right- The right-hand side condition.
Sourcepub fn build(self) -> QueryCondition<T>
pub fn build(self) -> QueryCondition<T>
Trait Implementations§
Source§impl<T: TableType + 'static> Into<QueryCondition<T>> for ConditionBuilder<T>
impl<T: TableType + 'static> Into<QueryCondition<T>> for ConditionBuilder<T>
Source§fn into(self) -> QueryCondition<T>
fn into(self) -> QueryCondition<T>
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl<T> Freeze for ConditionBuilder<T>
impl<T> !RefUnwindSafe for ConditionBuilder<T>
impl<T> !Send for ConditionBuilder<T>
impl<T> !Sync for ConditionBuilder<T>
impl<T> Unpin for ConditionBuilder<T>
impl<T> !UnwindSafe for ConditionBuilder<T>
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