pub struct DeleteQuery {
pub filter: Option<FilterExpr>,
pub limit: Option<LimitExpr>,
}Expand description
DeleteQuery
Fields§
§filter: Option<FilterExpr>§limit: Option<LimitExpr>Implementations§
Source§impl DeleteQuery
impl DeleteQuery
Sourcepub fn one<E: EntityKind>(self, value: impl FieldValue) -> Self
pub fn one<E: EntityKind>(self, value: impl FieldValue) -> Self
Delete a single row by primary key value.
Convenience wrapper; entity knowledge lives here only for ergonomics.
Sourcepub fn only<E: EntityKind>(self) -> Self
pub fn only<E: EntityKind>(self) -> Self
Delete a single row where the primary key is unit.
Sourcepub fn one_by_field(
self,
field: impl AsRef<str>,
value: impl FieldValue,
) -> Self
pub fn one_by_field( self, field: impl AsRef<str>, value: impl FieldValue, ) -> Self
Delete a single row by an arbitrary field value.
Sourcepub fn many_by_field<I, V>(self, field: impl AsRef<str>, values: I) -> Selfwhere
I: IntoIterator<Item = V>,
V: FieldValue,
pub fn many_by_field<I, V>(self, field: impl AsRef<str>, values: I) -> Selfwhere
I: IntoIterator<Item = V>,
V: FieldValue,
Delete multiple rows by an arbitrary field.
Trait Implementations§
Source§impl CandidType for DeleteQuery
impl CandidType for DeleteQuery
Source§impl Clone for DeleteQuery
impl Clone for DeleteQuery
Source§fn clone(&self) -> DeleteQuery
fn clone(&self) -> DeleteQuery
Returns a duplicate of the value. Read more
1.0.0 · 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 DeleteQuery
impl Debug for DeleteQuery
Source§impl Default for DeleteQuery
impl Default for DeleteQuery
Source§fn default() -> DeleteQuery
fn default() -> DeleteQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeleteQuery
impl<'de> Deserialize<'de> for DeleteQuery
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 DeleteQuery
impl FilterSlot for DeleteQuery
fn filter_slot(&mut self) -> &mut Option<FilterExpr>
Source§impl LimitSlot for DeleteQuery
impl LimitSlot for DeleteQuery
fn limit_slot(&mut self) -> &mut Option<LimitExpr>
Source§impl<E: EntityKind> QueryValidate<E> for DeleteQuery
impl<E: EntityKind> QueryValidate<E> for DeleteQuery
Auto Trait Implementations§
impl Freeze for DeleteQuery
impl RefUnwindSafe for DeleteQuery
impl Send for DeleteQuery
impl Sync for DeleteQuery
impl Unpin for DeleteQuery
impl UnwindSafe for DeleteQuery
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