pub struct Schedules {
    pub active: Option<bool>,
    pub added_after: Option<OffsetDateTime>,
    pub added_before: Option<OffsetDateTime>,
    pub cancelled_after: Option<OffsetDateTime>,
    pub cancelled_before: Option<OffsetDateTime>,
    pub search: Option<String>,
    pub include_labels: Option<Vec<LabelMatch>>,
    pub kind: Option<String>,
    pub order: ScheduleListOrder,
    pub offset: u64,
    pub limit: u64,
}Expand description
Search options for retrieving a list of tasks.
Fields§
§active: Option<bool>Only include schedules that are either active or inactive.
added_after: Option<OffsetDateTime>Only include schedules added after the given timestamp (inclusive).
added_before: Option<OffsetDateTime>Only include schedules added before the given timestamp (exclusive).
cancelled_after: Option<OffsetDateTime>Only include schedules cancelled after the given timestamp (inclusive).
cancelled_before: Option<OffsetDateTime>Only include schedules cancelled before the given timestamp (exclusive).
search: Option<String>A search text, how it is used is up to the store.
include_labels: Option<Vec<LabelMatch>>Include only matching labels.
kind: Option<String>Only return schedules that are known to spawn tasks with the given selector kind.
order: ScheduleListOrderThe way tasks are ordered before applying offset and limit.
offset: u64The offset.
limit: u64The maximum amount of schedules to fetch.
Implementations§
source§impl Schedules
 
impl Schedules
sourcepub fn all() -> Schedules
 
pub fn all() -> Schedules
Include all schedules without applying any filters nor limits.
caution: It does include ALL schedules without a limit.
sourcepub fn limit(self, limit: u64) -> Schedules
 
pub fn limit(self, limit: u64) -> Schedules
Set the maximum amount of schedules that are retrieved.
sourcepub fn with_label(self, label: &str) -> Schedules
 
pub fn with_label(self, label: &str) -> Schedules
Select schedules that contain the given label with any value.
sourcepub fn with_label_value(self, label: &str, value: impl Serialize) -> Schedules
 
pub fn with_label_value(self, label: &str, value: impl Serialize) -> Schedules
Select schedules that contain the given label and a specific value.
Panics
Panics if the given value is not JSON-serializable.
sourcepub fn with_worker_selector(self, selector: WorkerSelector) -> Schedules
 
pub fn with_worker_selector(self, selector: WorkerSelector) -> Schedules
Only include schedules with a known matching worker selector.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Schedules
impl Send for Schedules
impl Sync for Schedules
impl Unpin for Schedules
impl UnwindSafe for Schedules
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
§impl<T> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
source§impl<W> IntoHandler for Wwhere
    W: Send + Sync + 'static,
 
impl<W> IntoHandler for Wwhere W: Send + Sync + 'static,
source§fn handler<T>(self) -> Arc<dyn RawHandler + Send + Sync>where
    Self: Handler<T>,
    T: Task,
 
fn handler<T>(self) -> Arc<dyn RawHandler + Send + Sync>where Self: Handler<T>, T: Task,
self into a RawHandler that can be registered
in workers.source§fn handler_with_selector<T>(
    self,
    selector: WorkerSelector
) -> Arc<dyn RawHandler + Send + Sync>where
    Self: Handler<T>,
    T: Task,
 
fn handler_with_selector<T>( self, selector: WorkerSelector ) -> Arc<dyn RawHandler + Send + Sync>where Self: Handler<T>, T: Task,
self into a RawHandler that can be registered
in workers with the given selector.