pub struct MemberCompletion<'a> { /* private fields */ }Expand description
The optional completion declaration for one execution-unit member.
This borrowed value distinguishes an incomplete member from a completed member with or without a structured reason. The execution unit retains the reason object; Workflow copies it only when the member first completes.
Implementations§
Source§impl<'a> MemberCompletion<'a>
impl<'a> MemberCompletion<'a>
Sourcepub const fn without_reason() -> Self
pub const fn without_reason() -> Self
Declares completion without a structured reason.
Sourcepub const fn with_reason(reason: &'a Map<String, Value>) -> Self
pub const fn with_reason(reason: &'a Map<String, Value>) -> Self
Declares completion with a borrowed structured JSON reason.
Trait Implementations§
Source§impl<'a> Clone for MemberCompletion<'a>
impl<'a> Clone for MemberCompletion<'a>
impl<'a> Copy for MemberCompletion<'a>
Auto Trait Implementations§
impl<'a> Freeze for MemberCompletion<'a>
impl<'a> RefUnwindSafe for MemberCompletion<'a>
impl<'a> Send for MemberCompletion<'a>
impl<'a> Sync for MemberCompletion<'a>
impl<'a> Unpin for MemberCompletion<'a>
impl<'a> UnsafeUnpin for MemberCompletion<'a>
impl<'a> UnwindSafe for MemberCompletion<'a>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more