#[non_exhaustive]pub struct TasksLimits {
pub max_expanded_query_duration_seconds: u64,
}Expand description
Implementation-defined caps of a TasksBackend, returned by
TasksBackend::limits (workspace AGENTS.md “Backend caps and limits”;
mirrors CalendarsLimits).
| Field | Default | Rationale |
|---|---|---|
max_expanded_query_duration_seconds | 31_536_000 (365 days) | As CalendarsLimits: a year is the range clients commonly ask for, and longer windows multiply recurrence expansion. |
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.max_expanded_query_duration_seconds: u64Longest before - after window, in seconds, that Task/query
expands recurrences over: the account’s maxExpandedQueryDuration
(draft-tasks-06 §1.6.2, “The maximum duration the user may query
over when asking the server to expand recurrences”). A longer window
is the expandDurationTooLarge method error.
Implementations§
Source§impl TasksLimits
impl TasksLimits
Sourcepub fn new(max_expanded_query_duration_seconds: u64) -> Self
pub fn new(max_expanded_query_duration_seconds: u64) -> Self
Limits with the given Self::max_expanded_query_duration_seconds.
Trait Implementations§
Source§impl Clone for TasksLimits
impl Clone for TasksLimits
Source§impl Debug for TasksLimits
impl Debug for TasksLimits
Source§impl Default for TasksLimits
impl Default for TasksLimits
impl Eq for TasksLimits
Source§impl PartialEq for TasksLimits
impl PartialEq for TasksLimits
impl StructuralPartialEq for TasksLimits
Auto Trait Implementations§
impl Forget for TasksLimits
impl Freeze for TasksLimits
impl Move for TasksLimits
impl RefUnwindSafe for TasksLimits
impl Send for TasksLimits
impl Sync for TasksLimits
impl Unpin for TasksLimits
impl UnsafeUnpin for TasksLimits
impl UnwindSafe for TasksLimits
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