pub struct StartOptions {
pub input: Option<Value>,
pub id: Option<String>,
}Expand description
The options of a start (JSON, all optional): what differs from one actor of a machine to the next, and what a snapshot holds, so a restore takes none.
{ "input": any, // the root's input
"id": string } // the root's actor id (default `root`, ROOT_ID)Fields§
§input: Option<Value>§id: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for StartOptions
impl Clone for StartOptions
Source§impl Debug for StartOptions
impl Debug for StartOptions
Auto Trait Implementations§
impl Forget for StartOptions
impl Freeze for StartOptionswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
impl Move for StartOptions
impl RefUnwindSafe for StartOptions
impl Send for StartOptions
impl Sync for StartOptions
impl Unpin for StartOptions
impl UnsafeUnpin for StartOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
impl UnwindSafe for StartOptions
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