pub struct ScheduleDescription { /* private fields */ }Expand description
Description of a schedule returned by describe().
Provides ergonomic accessors over the raw DescribeScheduleResponse proto.
Use raw() or into_raw() to access the
full proto when needed.
Implementations§
Source§impl ScheduleDescription
impl ScheduleDescription
Sourcepub fn conflict_token(&self) -> &[u8] ⓘ
pub fn conflict_token(&self) -> &[u8] ⓘ
Token used for optimistic concurrency on updates.
Sourcepub fn note(&self) -> Option<&str>
pub fn note(&self) -> Option<&str>
Note on the schedule state (e.g., reason for pause).
Returns None if no note is set or the note is empty.
Sourcepub fn action_count(&self) -> i64
pub fn action_count(&self) -> i64
Total number of actions taken by this schedule.
Sourcepub fn missed_catchup_window(&self) -> i64
pub fn missed_catchup_window(&self) -> i64
Number of times a scheduled action was skipped due to missing the catchup window.
Sourcepub fn overlap_skipped(&self) -> i64
pub fn overlap_skipped(&self) -> i64
Number of skipped actions due to overlap.
Sourcepub fn recent_actions(&self) -> Vec<ScheduleRecentAction>
pub fn recent_actions(&self) -> Vec<ScheduleRecentAction>
Most recent action results (up to 10).
Sourcepub fn running_actions(&self) -> Vec<ScheduleRunningAction>
pub fn running_actions(&self) -> Vec<ScheduleRunningAction>
Currently-running workflows started by this schedule.
Sourcepub fn future_action_times(&self) -> Vec<SystemTime>
pub fn future_action_times(&self) -> Vec<SystemTime>
Next scheduled action times.
Sourcepub fn create_time(&self) -> Option<SystemTime>
pub fn create_time(&self) -> Option<SystemTime>
When the schedule was created.
Sourcepub fn update_time(&self) -> Option<SystemTime>
pub fn update_time(&self) -> Option<SystemTime>
When the schedule was last updated.
Sourcepub fn search_attributes(&self) -> Option<&SearchAttributes>
pub fn search_attributes(&self) -> Option<&SearchAttributes>
Search attributes on the schedule.
Sourcepub fn raw(&self) -> &DescribeScheduleResponse
pub fn raw(&self) -> &DescribeScheduleResponse
Access the raw proto for additional fields not exposed via accessors.
Sourcepub fn into_raw(self) -> DescribeScheduleResponse
pub fn into_raw(self) -> DescribeScheduleResponse
Consume the wrapper and return the raw proto.
Sourcepub fn into_update(self) -> ScheduleUpdate
pub fn into_update(self) -> ScheduleUpdate
Convert this description into a ScheduleUpdate for use with
ScheduleHandle::send_update().
Extracts the schedule definition from the description.
Trait Implementations§
Source§impl Clone for ScheduleDescription
impl Clone for ScheduleDescription
Source§fn clone(&self) -> ScheduleDescription
fn clone(&self) -> ScheduleDescription
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ScheduleDescription
impl Debug for ScheduleDescription
Source§impl From<DescribeScheduleResponse> for ScheduleDescription
impl From<DescribeScheduleResponse> for ScheduleDescription
Source§fn from(raw: DescribeScheduleResponse) -> Self
fn from(raw: DescribeScheduleResponse) -> Self
Auto Trait Implementations§
impl Freeze for ScheduleDescription
impl RefUnwindSafe for ScheduleDescription
impl Send for ScheduleDescription
impl Sync for ScheduleDescription
impl Unpin for ScheduleDescription
impl UnsafeUnpin for ScheduleDescription
impl UnwindSafe for ScheduleDescription
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
T in a tonic::Request