pub struct StepResult { /* private fields */ }Implementations§
Source§impl StepResult
impl StepResult
pub fn new( status: StepStatus, output: StepOutput, error_message: Option<StepErrorMessage>, ) -> Result<Self, DomainError>
pub fn completed(output: StepOutput) -> Result<Self, DomainError>
pub fn waiting_for_human(output: StepOutput) -> Result<Self, DomainError>
pub fn failed(error_message: StepErrorMessage) -> Result<Self, DomainError>
pub fn status(&self) -> StepStatus
pub fn output(&self) -> &StepOutput
pub fn error_message(&self) -> Option<&StepErrorMessage>
pub fn into_parts(self) -> (StepStatus, StepOutput, Option<StepErrorMessage>)
pub fn is_success(&self) -> bool
Trait Implementations§
Source§impl Clone for StepResult
impl Clone for StepResult
Source§fn clone(&self) -> StepResult
fn clone(&self) -> StepResult
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 StepResult
impl Debug for StepResult
Source§impl<'de> Deserialize<'de> for StepResult
impl<'de> Deserialize<'de> for StepResult
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
impl Eq for StepResult
Source§impl PartialEq for StepResult
impl PartialEq for StepResult
Source§impl Serialize for StepResult
impl Serialize for StepResult
impl StructuralPartialEq for StepResult
Auto Trait Implementations§
impl Freeze for StepResult
impl RefUnwindSafe for StepResult
impl Send for StepResult
impl Sync for StepResult
impl Unpin for StepResult
impl UnsafeUnpin for StepResult
impl UnwindSafe for StepResult
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