pub struct ScheduleFilters {
pub schedule_ids: Option<Vec<ScheduleId>>,
pub job_type_ids: Option<Vec<JobTypeId>>,
pub statuses: Option<Vec<ScheduleStatus>>,
pub created_at: Option<TimeRange>,
pub labels: Option<Vec<LabelFilter>>,
}Expand description
Filters for listing schedules.
Fields§
§schedule_ids: Option<Vec<ScheduleId>>Filter by schedule IDs.
job_type_ids: Option<Vec<JobTypeId>>Filter by job type IDs.
statuses: Option<Vec<ScheduleStatus>>Filter by status.
created_at: Option<TimeRange>Filter by creation time. The range can be open-ended in either direction.
labels: Option<Vec<LabelFilter>>Filter by labels.
Implementations§
Source§impl ScheduleFilters
impl ScheduleFilters
Sourcepub fn active_only(self) -> Self
pub fn active_only(self) -> Self
Filter for active schedules only.
Sourcepub fn stopped_only(self) -> Self
pub fn stopped_only(self) -> Self
Filter for stopped schedules only.
Trait Implementations§
Source§impl Debug for ScheduleFilters
impl Debug for ScheduleFilters
Source§impl Default for ScheduleFilters
impl Default for ScheduleFilters
Source§fn default() -> ScheduleFilters
fn default() -> ScheduleFilters
Returns the “default value” for a type. Read more
Source§impl From<ScheduleFilters> for ScheduleFilters
impl From<ScheduleFilters> for ScheduleFilters
Source§fn from(value: ScheduleFilters) -> Self
fn from(value: ScheduleFilters) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ScheduleFilters
impl RefUnwindSafe for ScheduleFilters
impl Send for ScheduleFilters
impl Sync for ScheduleFilters
impl Unpin for ScheduleFilters
impl UnsafeUnpin for ScheduleFilters
impl UnwindSafe for ScheduleFilters
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request