#[non_exhaustive]pub struct WorkflowExecutionInfo {
pub execution: Option<WorkflowExecution>,
pub workflow_type: Option<WorkflowType>,
pub start_timestamp: DateTime,
pub close_timestamp: Option<DateTime>,
pub execution_status: ExecutionStatus,
pub close_status: Option<CloseStatus>,
pub parent: Option<WorkflowExecution>,
pub tag_list: Option<Vec<String>>,
pub cancel_requested: bool,
}
Expand description
Contains information about a workflow execution.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.execution: Option<WorkflowExecution>
The workflow execution this information is about.
workflow_type: Option<WorkflowType>
The type of the workflow execution.
start_timestamp: DateTime
The time when the execution was started.
close_timestamp: Option<DateTime>
The time when the workflow execution was closed. Set only if the execution status is CLOSED.
execution_status: ExecutionStatus
The current status of the execution.
close_status: Option<CloseStatus>
If the execution status is closed then this specifies how the execution was closed:
-
COMPLETED
– the execution was successfully completed. -
CANCELED
– the execution was canceled.Cancellation allows the implementation to gracefully clean up before the execution is closed. -
TERMINATED
– the execution was force terminated. -
FAILED
– the execution failed to complete. -
TIMED_OUT
– the execution did not complete in the alloted time and was automatically timed out. -
CONTINUED_AS_NEW
– the execution is logically continued. This means the current execution was completed and a new execution was started to carry on the workflow.
parent: Option<WorkflowExecution>
If this workflow execution is a child of another execution then contains the workflow execution that started this execution.
tag_list: Option<Vec<String>>
The list of tags associated with the workflow execution. Tags can be used to identify and list workflow executions of interest through the visibility APIs. A workflow execution can have a maximum of 5 tags.
cancel_requested: bool
Set to true if a cancellation is requested for this workflow execution.
Implementations§
Source§impl WorkflowExecutionInfo
impl WorkflowExecutionInfo
Sourcepub fn execution(&self) -> Option<&WorkflowExecution>
pub fn execution(&self) -> Option<&WorkflowExecution>
The workflow execution this information is about.
Sourcepub fn workflow_type(&self) -> Option<&WorkflowType>
pub fn workflow_type(&self) -> Option<&WorkflowType>
The type of the workflow execution.
Sourcepub fn start_timestamp(&self) -> &DateTime
pub fn start_timestamp(&self) -> &DateTime
The time when the execution was started.
Sourcepub fn close_timestamp(&self) -> Option<&DateTime>
pub fn close_timestamp(&self) -> Option<&DateTime>
The time when the workflow execution was closed. Set only if the execution status is CLOSED.
Sourcepub fn execution_status(&self) -> &ExecutionStatus
pub fn execution_status(&self) -> &ExecutionStatus
The current status of the execution.
Sourcepub fn close_status(&self) -> Option<&CloseStatus>
pub fn close_status(&self) -> Option<&CloseStatus>
If the execution status is closed then this specifies how the execution was closed:
-
COMPLETED
– the execution was successfully completed. -
CANCELED
– the execution was canceled.Cancellation allows the implementation to gracefully clean up before the execution is closed. -
TERMINATED
– the execution was force terminated. -
FAILED
– the execution failed to complete. -
TIMED_OUT
– the execution did not complete in the alloted time and was automatically timed out. -
CONTINUED_AS_NEW
– the execution is logically continued. This means the current execution was completed and a new execution was started to carry on the workflow.
Sourcepub fn parent(&self) -> Option<&WorkflowExecution>
pub fn parent(&self) -> Option<&WorkflowExecution>
If this workflow execution is a child of another execution then contains the workflow execution that started this execution.
Sourcepub fn tag_list(&self) -> &[String]
pub fn tag_list(&self) -> &[String]
The list of tags associated with the workflow execution. Tags can be used to identify and list workflow executions of interest through the visibility APIs. A workflow execution can have a maximum of 5 tags.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tag_list.is_none()
.
Sourcepub fn cancel_requested(&self) -> bool
pub fn cancel_requested(&self) -> bool
Set to true if a cancellation is requested for this workflow execution.
Source§impl WorkflowExecutionInfo
impl WorkflowExecutionInfo
Sourcepub fn builder() -> WorkflowExecutionInfoBuilder
pub fn builder() -> WorkflowExecutionInfoBuilder
Creates a new builder-style object to manufacture WorkflowExecutionInfo
.
Trait Implementations§
Source§impl Clone for WorkflowExecutionInfo
impl Clone for WorkflowExecutionInfo
Source§fn clone(&self) -> WorkflowExecutionInfo
fn clone(&self) -> WorkflowExecutionInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for WorkflowExecutionInfo
impl Debug for WorkflowExecutionInfo
Source§impl PartialEq for WorkflowExecutionInfo
impl PartialEq for WorkflowExecutionInfo
impl StructuralPartialEq for WorkflowExecutionInfo
Auto Trait Implementations§
impl Freeze for WorkflowExecutionInfo
impl RefUnwindSafe for WorkflowExecutionInfo
impl Send for WorkflowExecutionInfo
impl Sync for WorkflowExecutionInfo
impl Unpin for WorkflowExecutionInfo
impl UnwindSafe for WorkflowExecutionInfo
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);