Struct google_api_proto::google::cloud::workflows::executions::v1::Execution
source · pub struct Execution {Show 13 fields
pub name: String,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub duration: Option<Duration>,
pub state: i32,
pub argument: String,
pub result: String,
pub error: Option<Error>,
pub workflow_revision_id: String,
pub call_log_level: i32,
pub status: Option<Status>,
pub labels: BTreeMap<String, String>,
pub state_error: Option<StateError>,
}
Expand description
A running instance of a Workflow.
Fields§
§name: String
Output only. The resource name of the execution. Format: projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
start_time: Option<Timestamp>
Output only. Marks the beginning of execution.
end_time: Option<Timestamp>
Output only. Marks the end of execution, successful or not.
duration: Option<Duration>
Output only. Measures the duration of the execution.
state: i32
Output only. Current state of the execution.
argument: String
Input parameters of the execution represented as a JSON string. The size limit is 32KB.
Note: If you are using the REST API directly to run your workflow, you
must escape any JSON string value of argument
. Example:
'{"argument":"{\"firstName\":\"FIRST\",\"lastName\":\"LAST\"}"}'
result: String
Output only. Output of the execution represented as a JSON string. The
value can only be present if the execution’s state is SUCCEEDED
.
error: Option<Error>
Output only. The error which caused the execution to finish prematurely.
The value is only present if the execution’s state is FAILED
or CANCELLED
.
workflow_revision_id: String
Output only. Revision of the workflow this execution is using.
call_log_level: i32
The call logging level associated to this execution.
status: Option<Status>
Output only. Status tracks the current steps and progress data of this execution.
labels: BTreeMap<String, String>
Labels associated with this execution. Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, and dashes. Label keys must start with a letter. International characters are allowed. By default, labels are inherited from the workflow but are overridden by any labels associated with the execution.
state_error: Option<StateError>
Output only. Error regarding the state of the Execution resource. For example, this field will have error details if the execution data is unavailable due to revoked KMS key permissions.
Implementations§
source§impl Execution
impl Execution
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn call_log_level(&self) -> CallLogLevel
pub fn call_log_level(&self) -> CallLogLevel
Returns the enum value of call_log_level
, or the default if the field is set to an invalid enum value.
sourcepub fn set_call_log_level(&mut self, value: CallLogLevel)
pub fn set_call_log_level(&mut self, value: CallLogLevel)
Sets call_log_level
to the provided enum value.
Trait Implementations§
source§impl Message for Execution
impl Message for Execution
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Execution
impl PartialEq for Execution
impl StructuralPartialEq for Execution
Auto Trait Implementations§
impl Freeze for Execution
impl RefUnwindSafe for Execution
impl Send for Execution
impl Sync for Execution
impl Unpin for Execution
impl UnwindSafe for Execution
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<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