#[non_exhaustive]pub struct DestroyedQueryParams<'a, O: QueryObject> {
pub query: QueryParams<'a, O>,
pub destroyed_after: Option<&'a UTCDate>,
pub destroyed_before: Option<&'a UTCDate>,
}Expand description
The parameters of ObjectHistoryBackend::query_destroyed: an ordinary
query over destroyed objects plus the §4 window.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.query: QueryParams<'a, O>filter, sort, position, anchor, anchorOffset, limit;
applied to each object’s final version.
destroyed_after: Option<&'a UTCDate>destroyedAfter: destroyed strictly after this time.
destroyed_before: Option<&'a UTCDate>destroyedBefore: destroyed strictly before this time.
Implementations§
Source§impl<'a, O: QueryObject> DestroyedQueryParams<'a, O>
impl<'a, O: QueryObject> DestroyedQueryParams<'a, O>
Sourcepub fn new(query: QueryParams<'a, O>) -> Self
pub fn new(query: QueryParams<'a, O>) -> Self
query with no window.
Sourcepub fn destroyed_after(self, t: Option<&'a UTCDate>) -> Self
pub fn destroyed_after(self, t: Option<&'a UTCDate>) -> Self
Set destroyed_after.
Sourcepub fn destroyed_before(self, t: Option<&'a UTCDate>) -> Self
pub fn destroyed_before(self, t: Option<&'a UTCDate>) -> Self
Set destroyed_before.
Auto Trait Implementations§
impl<'a, O> Forget for DestroyedQueryParams<'a, O>
impl<'a, O> Freeze for DestroyedQueryParams<'a, O>where
QueryParams<'a, O>: Freeze,
impl<'a, O> Move for DestroyedQueryParams<'a, O>
impl<'a, O> RefUnwindSafe for DestroyedQueryParams<'a, O>where
QueryParams<'a, O>: RefUnwindSafe,
impl<'a, O> Send for DestroyedQueryParams<'a, O>where
QueryParams<'a, O>: Send,
impl<'a, O> Sync for DestroyedQueryParams<'a, O>where
QueryParams<'a, O>: Sync,
impl<'a, O> Unpin for DestroyedQueryParams<'a, O>where
QueryParams<'a, O>: Unpin,
impl<'a, O> UnsafeUnpin for DestroyedQueryParams<'a, O>where
QueryParams<'a, O>: UnsafeUnpin,
impl<'a, O> UnwindSafe for DestroyedQueryParams<'a, O>where
QueryParams<'a, O>: UnwindSafe,
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