pub struct CeremonyIntervention { /* private fields */ }Implementations§
Source§impl CeremonyIntervention
impl CeremonyIntervention
pub fn open( id: CeremonyInterventionId, kind: CeremonyInterventionKind, requested_by: RoleId, target: CeremonyInterventionTarget, request: CeremonyInterventionContent, now: OffsetDateTime, ) -> Self
pub fn open_with_provenance( id: CeremonyInterventionId, kind: CeremonyInterventionKind, requested_by: RoleId, target: CeremonyInterventionTarget, request: CeremonyInterventionContent, provenance: Option<CeremonyInterventionProvenance>, now: OffsetDateTime, ) -> Self
Sourcepub fn with_intent(self, intent: CeremonyInterventionIntent) -> Self
pub fn with_intent(self, intent: CeremonyInterventionIntent) -> Self
The same item, said to be for one of the four reasons.
Sourcepub fn with_delivery(self, delivery: InterventionDeliveryPolicy) -> Self
pub fn with_delivery(self, delivery: InterventionDeliveryPolicy) -> Self
The same item, offered to its host on the given terms.
Sourcepub fn with_supervisor(self, supervisor: SupervisorPrincipal) -> Self
pub fn with_supervisor(self, supervisor: SupervisorPrincipal) -> Self
The same item, asked by somebody who holds no seat at the table.
Sourcepub fn acknowledge_delivery(
&mut self,
ack: InterventionDeliveryAck,
) -> Result<(), DomainError>
pub fn acknowledge_delivery( &mut self, ack: InterventionDeliveryAck, ) -> Result<(), DomainError>
Record that a named agent said it saw this item.
Appending is the fold’s job; the rule about what agrees with what lives on the acknowledgement, and repeating an identical one changes nothing rather than growing the list.
Sourcepub fn delivery_ack(
&self,
delivery_id: &HostDeliveryId,
) -> Option<&InterventionDeliveryAck>
pub fn delivery_ack( &self, delivery_id: &HostDeliveryId, ) -> Option<&InterventionDeliveryAck>
What this item’s host said about one offer of it, if anything.
Sourcepub fn was_acknowledged_by(&self, recipient: &DeliveryRecipient) -> bool
pub fn was_acknowledged_by(&self, recipient: &DeliveryRecipient) -> bool
Whether a recipient has already said it saw this item.
pub fn respond( &mut self, role_id: RoleId, content: CeremonyInterventionContent, now: OffsetDateTime, ) -> Result<(), DomainError>
Sourcepub fn accept_response(
&mut self,
response: CeremonyInterventionResponse,
) -> Result<(), DomainError>
pub fn accept_response( &mut self, response: CeremonyInterventionResponse, ) -> Result<(), DomainError>
Append an answer exactly as it was sealed.
The door a replay comes through. A fold that rebuilt the answer from its parts would silently drop whatever the value object grew since — which agent gave it, which offer it closes — and the replayed session would disagree with its own journal about who answered.