pub enum Work {
Invoke {
id: String,
actor: String,
src: String,
input: Option<Value>,
},
Action {
id: String,
actor: String,
ty: String,
params: Option<Value>,
},
}Expand description
Work the run waits for, in the order it started: invoked work, which the
host settles resolved or rejected, or a host action, which it settles
done. kind is always written.
Variants§
Invoke
Invoked work: the actor at actor runs the logic src on input.
Action
A host action: the actor at actor took the action type with
params.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Work
impl<'de> Deserialize<'de> for Work
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 StructuralPartialEq for Work
Auto Trait Implementations§
impl Forget for Work
impl Freeze for Workwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
impl Move for Work
impl RefUnwindSafe for Work
impl Send for Work
impl Sync for Work
impl Unpin for Work
impl UnsafeUnpin for Workwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
impl UnwindSafe for Work
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