pub struct CountQuery {
pub from: TableRef,
pub predicate: Option<Predicate>,
}Fields§
§from: TableRef§predicate: Option<Predicate>Implementations§
Source§impl CountQuery
impl CountQuery
pub fn from_entity<E: Entity>() -> Self
pub fn from_entity_as<E: Entity>(alias: &'static str) -> Self
pub fn filter(self, predicate: Predicate) -> Self
Trait Implementations§
Source§impl Clone for CountQuery
impl Clone for CountQuery
Source§fn clone(&self) -> CountQuery
fn clone(&self) -> CountQuery
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 CountQuery
impl Debug for CountQuery
Source§impl PartialEq for CountQuery
impl PartialEq for CountQuery
Source§fn eq(&self, other: &CountQuery) -> bool
fn eq(&self, other: &CountQuery) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CountQuery
Auto Trait Implementations§
impl Freeze for CountQuery
impl RefUnwindSafe for CountQuery
impl Send for CountQuery
impl Sync for CountQuery
impl Unpin for CountQuery
impl UnsafeUnpin for CountQuery
impl UnwindSafe for CountQuery
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