pub struct OrchestrationState {
pub instance_id: String,
pub name: String,
pub runtime_status: OrchestrationStatus,
pub created_at: Option<DateTime<Utc>>,
pub last_updated_at: Option<DateTime<Utc>>,
pub serialized_input: Option<String>,
pub serialized_output: Option<String>,
pub serialized_custom_status: Option<String>,
pub failure_details: Option<FailureDetails>,
}Expand description
Snapshot of an orchestration instance’s current state.
Fields§
§instance_id: String§name: String§runtime_status: OrchestrationStatus§created_at: Option<DateTime<Utc>>§last_updated_at: Option<DateTime<Utc>>§serialized_input: Option<String>§serialized_output: Option<String>§serialized_custom_status: Option<String>§failure_details: Option<FailureDetails>Implementations§
Source§impl OrchestrationState
impl OrchestrationState
Sourcepub fn raise_if_failed(&self) -> Result<()>
pub fn raise_if_failed(&self) -> Result<()>
Returns Ok(()) if the orchestration has not failed, or an error with
the failure details if it has.
Trait Implementations§
Source§impl Clone for OrchestrationState
impl Clone for OrchestrationState
Source§fn clone(&self) -> OrchestrationState
fn clone(&self) -> OrchestrationState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OrchestrationState
impl Debug for OrchestrationState
Source§impl<'de> Deserialize<'de> for OrchestrationState
impl<'de> Deserialize<'de> for OrchestrationState
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 Serialize for OrchestrationState
impl Serialize for OrchestrationState
Source§impl TryFrom<&GetInstanceResponse> for OrchestrationState
impl TryFrom<&GetInstanceResponse> for OrchestrationState
Source§fn try_from(response: &GetInstanceResponse) -> Result<Self, Self::Error>
fn try_from(response: &GetInstanceResponse) -> Result<Self, Self::Error>
Constructs an OrchestrationState from a proto GetInstanceResponse.
Returns Err(InstanceNotFound) if the response indicates the instance
does not exist or has no workflow state.
Source§type Error = InstanceNotFound
type Error = InstanceNotFound
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for OrchestrationState
impl RefUnwindSafe for OrchestrationState
impl Send for OrchestrationState
impl Sync for OrchestrationState
impl Unpin for OrchestrationState
impl UnsafeUnpin for OrchestrationState
impl UnwindSafe for OrchestrationState
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