pub struct CeremonyInterventionResponse { /* private fields */ }Implementations§
Source§impl CeremonyInterventionResponse
impl CeremonyInterventionResponse
pub fn new( role_id: RoleId, content: CeremonyInterventionContent, responded_at: OffsetDateTime, ) -> Self
Sourcepub fn answering_delivery(
self,
executor: DeliveryRecipient,
delivery_id: HostDeliveryId,
) -> Self
pub fn answering_delivery( self, executor: DeliveryRecipient, delivery_id: HostDeliveryId, ) -> Self
The same answer, attributed to the agent that was handed the item.
pub fn from_evidence( role_id: RoleId, evidence_pack: CeremonyEvidencePack, responded_at: OffsetDateTime, ) -> Result<Self, DomainError>
pub fn role_id(&self) -> &RoleId
pub fn content(&self) -> &CeremonyInterventionContent
pub fn evidence_pack(&self) -> Option<&CeremonyEvidencePack>
pub fn responded_at(&self) -> OffsetDateTime
Sourcepub const fn executor(&self) -> Option<&DeliveryRecipient>
pub const fn executor(&self) -> Option<&DeliveryRecipient>
The live agent that gave this answer, when one was named.
Sourcepub const fn delivery_id(&self) -> Option<&HostDeliveryId>
pub const fn delivery_id(&self) -> Option<&HostDeliveryId>
The offer of the item this answer closes, when one was named.
Trait Implementations§
Source§impl Clone for CeremonyInterventionResponse
impl Clone for CeremonyInterventionResponse
Source§impl Debug for CeremonyInterventionResponse
impl Debug for CeremonyInterventionResponse
Source§impl<'de> Deserialize<'de> for CeremonyInterventionResponse
impl<'de> Deserialize<'de> for CeremonyInterventionResponse
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
impl Eq for CeremonyInterventionResponse
impl StructuralPartialEq for CeremonyInterventionResponse
Auto Trait Implementations§
impl Freeze for CeremonyInterventionResponse
impl RefUnwindSafe for CeremonyInterventionResponse
impl Send for CeremonyInterventionResponse
impl Sync for CeremonyInterventionResponse
impl Unpin for CeremonyInterventionResponse
impl UnsafeUnpin for CeremonyInterventionResponse
impl UnwindSafe for CeremonyInterventionResponse
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