pub struct CoordinationMessage {
pub coordination_id: String,
pub member: String,
pub pattern: CoordinationKind,
pub input: PayloadRef,
pub context: Option<ContextGrant>,
}Expand description
The payload of a member task the pattern submits (R0.7 wave 3). This is
the detection gate for the settle hooks: when any task settles, the
server parses its payload as a CoordinationMessage and, only if a
scoped coordination record matches, drives the pattern forward. Ordinary
queue tasks never parse — the pattern field and member field together
make a false positive a deliberate act, not an accident.
Fields§
§coordination_id: StringThe pattern this task belongs to (external id form).
member: StringThe member name this task executes.
pattern: CoordinationKindWhich pattern is driving, denormalized onto the message so a reader of the task queue can classify member work without a record lookup.
input: PayloadRefThe member’s input, from the contract.
context: Option<ContextGrant>The context grant handed to the member, when the pattern declares one.
Trait Implementations§
Source§impl Clone for CoordinationMessage
impl Clone for CoordinationMessage
Source§impl Debug for CoordinationMessage
impl Debug for CoordinationMessage
Source§impl<'de> Deserialize<'de> for CoordinationMessage
impl<'de> Deserialize<'de> for CoordinationMessage
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 CoordinationMessage
impl PartialEq for CoordinationMessage
Source§impl Serialize for CoordinationMessage
impl Serialize for CoordinationMessage
impl StructuralPartialEq for CoordinationMessage
Auto Trait Implementations§
impl Freeze for CoordinationMessage
impl RefUnwindSafe for CoordinationMessage
impl Send for CoordinationMessage
impl Sync for CoordinationMessage
impl Unpin for CoordinationMessage
impl UnsafeUnpin for CoordinationMessage
impl UnwindSafe for CoordinationMessage
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