pub struct LoadQuery {
pub filter: Option<FilterExpr>,
pub limit: Option<LimitExpr>,
pub sort: Option<SortExpr>,
}Expand description
LoadQuery
Fields§
§filter: Option<FilterExpr>§limit: Option<LimitExpr>§sort: Option<SortExpr>Implementations§
Source§impl LoadQuery
impl LoadQuery
pub fn new() -> Self
pub const fn is_empty(&self) -> bool
Sourcepub fn one<E: EntityKind>(self, value: impl FieldValue) -> Self
pub fn one<E: EntityKind>(self, value: impl FieldValue) -> Self
SHAPES
pub fn only<E: EntityKind>(self) -> Self
pub fn many<E: EntityKind>( self, values: impl IntoIterator<Item = impl FieldValue>, ) -> Self
pub fn all() -> Self
Trait Implementations§
Source§impl CandidType for LoadQuery
impl CandidType for LoadQuery
Source§impl<'de> Deserialize<'de> for LoadQuery
impl<'de> Deserialize<'de> for LoadQuery
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FilterSlot for LoadQuery
impl FilterSlot for LoadQuery
fn filter_slot(&mut self) -> &mut Option<FilterExpr>
Source§impl<E: EntityKind> QueryValidate<E> for LoadQuery
impl<E: EntityKind> QueryValidate<E> for LoadQuery
Auto Trait Implementations§
impl Freeze for LoadQuery
impl RefUnwindSafe for LoadQuery
impl Send for LoadQuery
impl Sync for LoadQuery
impl Unpin for LoadQuery
impl UnwindSafe for LoadQuery
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