#[non_exhaustive]pub struct TaskQueryArgs {
pub expand_recurrences: bool,
pub time_zone: Option<String>,
}Expand description
Per-call Task/query arguments beyond RFC 8620 §5.5
(jmapio/jmap #456, following CalendarEvent/query,
draft-ietf-jmap-calendars-34 §5.11).
#[non_exhaustive] so a later revision can add arguments; build one
with TaskQueryArgs::default and the setters.
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.expand_recurrences: boolexpandRecurrences (default false): return one id per instance
of a recurring task. The handler has checked that the filter is one
FilterCondition with both before and after.
time_zone: Option<String>timeZone (default "Etc/UTC" when None): the zone for the
after / before conditions and for floating tasks when filtering
and sorting. The crate does not check it against the IANA Time Zone
Database; that is the backend’s job.
Implementations§
Source§impl TaskQueryArgs
impl TaskQueryArgs
Sourcepub fn with_expand_recurrences(self, expand: bool) -> Self
pub fn with_expand_recurrences(self, expand: bool) -> Self
Sourcepub fn with_time_zone(self, time_zone: Option<String>) -> Self
pub fn with_time_zone(self, time_zone: Option<String>) -> Self
Set Self::time_zone.
Trait Implementations§
Source§impl Clone for TaskQueryArgs
impl Clone for TaskQueryArgs
Source§impl Debug for TaskQueryArgs
impl Debug for TaskQueryArgs
Source§impl Default for TaskQueryArgs
impl Default for TaskQueryArgs
impl Eq for TaskQueryArgs
Source§impl PartialEq for TaskQueryArgs
impl PartialEq for TaskQueryArgs
impl StructuralPartialEq for TaskQueryArgs
Auto Trait Implementations§
impl Forget for TaskQueryArgs
impl Freeze for TaskQueryArgs
impl Move for TaskQueryArgs
impl RefUnwindSafe for TaskQueryArgs
impl Send for TaskQueryArgs
impl Sync for TaskQueryArgs
impl Unpin for TaskQueryArgs
impl UnsafeUnpin for TaskQueryArgs
impl UnwindSafe for TaskQueryArgs
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