pub struct StepStatus {
pub step_id: String,
pub step_index: u32,
pub item_index: u32,
pub status: i32,
pub component: Option<String>,
pub output: Option<Value>,
pub error_message: Option<String>,
pub error_code: Option<i32>,
pub started_at: Option<Timestamp>,
pub completed_at: Option<Timestamp>,
pub journal_seqno: u64,
pub updated_at: Option<Timestamp>,
}Fields§
§step_id: String§step_index: u32§item_index: u32Item index (0-based). Required for batch runs.
status: i32§component: Option<String>§output: Option<Value>Step result (present when completed or failed).
error_message: Option<String>§error_code: Option<i32>§started_at: Option<Timestamp>§completed_at: Option<Timestamp>§journal_seqno: u64Journal sequence number of the event that produced this status.
updated_at: Option<Timestamp>When this status was last updated.
Implementations§
Source§impl StepStatus
impl StepStatus
Sourcepub fn status(&self) -> ExecutionStatus
pub fn status(&self) -> ExecutionStatus
Returns the enum value of status, or the default if the field is set to an invalid enum value.
Sourcepub fn set_status(&mut self, value: ExecutionStatus)
pub fn set_status(&mut self, value: ExecutionStatus)
Sets status to the provided enum value.
Sourcepub fn component(&self) -> &str
pub fn component(&self) -> &str
Returns the value of component, or the default value if component is unset.
Sourcepub fn error_message(&self) -> &str
pub fn error_message(&self) -> &str
Returns the value of error_message, or the default value if error_message is unset.
Sourcepub fn error_code(&self) -> TaskErrorCode
pub fn error_code(&self) -> TaskErrorCode
Returns the enum value of error_code, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_error_code(&mut self, value: TaskErrorCode)
pub fn set_error_code(&mut self, value: TaskErrorCode)
Sets error_code to the provided enum value.
Trait Implementations§
Source§impl Clone for StepStatus
impl Clone for StepStatus
Source§fn clone(&self) -> StepStatus
fn clone(&self) -> StepStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StepStatus
impl Debug for StepStatus
Source§impl Default for StepStatus
impl Default for StepStatus
Source§impl<'de> Deserialize<'de> for StepStatus
impl<'de> Deserialize<'de> for StepStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for StepStatus
impl Message for StepStatus
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for StepStatus
impl PartialEq for StepStatus
Source§impl Serialize for StepStatus
impl Serialize for StepStatus
impl StructuralPartialEq for StepStatus
Auto Trait Implementations§
impl Freeze for StepStatus
impl RefUnwindSafe for StepStatus
impl Send for StepStatus
impl Sync for StepStatus
impl Unpin for StepStatus
impl UnsafeUnpin for StepStatus
impl UnwindSafe for StepStatus
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> 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>
Wrap the input message
T in a tonic::Request