pub struct BuildHandoff {
pub task_id: String,
pub from_actor: String,
pub to_actor: String,
pub condition: Option<String>,
pub handoff_at: String,
pub valid_until: Option<String>,
}Expand description
Parameters for build_handoff. The signer is the receiver (to_actor), the
party taking responsibility. condition, when set, attests the state of the
task or object as received (for example a status, a quantity, or a hash of an
inspection), which lets a later state change be localized to a hop.
from_actor and to_actor may be human or robot DIDs. valid_until, when
set, bounds the handoff’s active window (the wrapper derives it from a
valid_seconds lifetime added to handoff_at, keeping the core’s clock
caller-supplied).
Fields§
§task_id: String§from_actor: String§to_actor: String§condition: Option<String>§handoff_at: String§valid_until: Option<String>Trait Implementations§
Source§impl Clone for BuildHandoff
impl Clone for BuildHandoff
Auto Trait Implementations§
impl Freeze for BuildHandoff
impl RefUnwindSafe for BuildHandoff
impl Send for BuildHandoff
impl Sync for BuildHandoff
impl Unpin for BuildHandoff
impl UnsafeUnpin for BuildHandoff
impl UnwindSafe for BuildHandoff
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