pub struct DelegateContract {
pub delegate: Delegation,
pub context: Option<ContextGrant>,
pub result_contract: Option<ArtifactContract>,
pub handoff: bool,
}Expand description
delegate — hand one task to one member (R0.7 wave 3). The member’s
settlement is the pattern’s settlement; with handoff, the journaled
outcome doubles as the delegator’s handoff record.
Fields§
§delegate: DelegationThe single member assignment.
context: Option<ContextGrant>The context granted to the member. May only narrow the target’s
declared scopes (ContextGrant::narrows).
result_contract: Option<ArtifactContract>The contract the member’s result must satisfy. Carried on the wire in wave 3; contract enforcement on the result lands with schema validation in a later wave.
handoff: boolWhen true, the outcome is journaled as the delegator’s handoff
record — the delegate’s result stands in for the delegator’s own
next step. Sparse wire: absent means false.
Trait Implementations§
Source§impl Clone for DelegateContract
impl Clone for DelegateContract
Source§fn clone(&self) -> DelegateContract
fn clone(&self) -> DelegateContract
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 DelegateContract
impl Debug for DelegateContract
Source§impl<'de> Deserialize<'de> for DelegateContract
impl<'de> Deserialize<'de> for DelegateContract
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
Source§impl PartialEq for DelegateContract
impl PartialEq for DelegateContract
Source§impl Serialize for DelegateContract
impl Serialize for DelegateContract
impl StructuralPartialEq for DelegateContract
Auto Trait Implementations§
impl Freeze for DelegateContract
impl RefUnwindSafe for DelegateContract
impl Send for DelegateContract
impl Sync for DelegateContract
impl Unpin for DelegateContract
impl UnsafeUnpin for DelegateContract
impl UnwindSafe for DelegateContract
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