pub struct MockLeafOutcome {
pub status: WorkflowRunStatus,
pub usage: WorkflowUsage,
pub memo_usage: WorkflowMemoUsage,
pub output: Option<String>,
pub artifacts: Vec<String>,
}Fields§
§status: WorkflowRunStatus§usage: WorkflowUsage§memo_usage: WorkflowMemoUsage§output: Option<String>§artifacts: Vec<String>Implementations§
Source§impl MockLeafOutcome
impl MockLeafOutcome
pub fn succeeded(output: impl Into<String>) -> Self
pub fn failed(output: impl Into<String>) -> Self
pub fn with_usage(self, usage: WorkflowUsage) -> Self
pub fn with_memo_usage(self, memo_usage: WorkflowMemoUsage) -> Self
Trait Implementations§
Source§impl Clone for MockLeafOutcome
impl Clone for MockLeafOutcome
Source§fn clone(&self) -> MockLeafOutcome
fn clone(&self) -> MockLeafOutcome
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 MockLeafOutcome
impl Debug for MockLeafOutcome
Source§impl<'de> Deserialize<'de> for MockLeafOutcome
impl<'de> Deserialize<'de> for MockLeafOutcome
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 MockLeafOutcome
Source§impl PartialEq for MockLeafOutcome
impl PartialEq for MockLeafOutcome
Source§impl Serialize for MockLeafOutcome
impl Serialize for MockLeafOutcome
impl StructuralPartialEq for MockLeafOutcome
Auto Trait Implementations§
impl Freeze for MockLeafOutcome
impl RefUnwindSafe for MockLeafOutcome
impl Send for MockLeafOutcome
impl Sync for MockLeafOutcome
impl Unpin for MockLeafOutcome
impl UnsafeUnpin for MockLeafOutcome
impl UnwindSafe for MockLeafOutcome
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