pub struct HostDeliveryObservation { /* private fields */ }Expand description
What a host reported about a delivery it was handed.
An observation, not a verdict: the engine records what the host said and when, and the ledger’s state follows from it. Nothing here is the engine’s own opinion about whether the work got done.
Implementations§
Source§impl HostDeliveryObservation
impl HostDeliveryObservation
pub const fn new( kind: HostDeliveryObservationKind, observed_at: OffsetDateTime, evidence: Option<EvidenceReference>, note: DeliveryNote, ) -> Self
pub const fn kind(&self) -> HostDeliveryObservationKind
pub const fn observed_at(&self) -> OffsetDateTime
pub const fn evidence(&self) -> Option<&EvidenceReference>
pub const fn note(&self) -> &DeliveryNote
Trait Implementations§
Source§impl Clone for HostDeliveryObservation
impl Clone for HostDeliveryObservation
Source§impl Debug for HostDeliveryObservation
impl Debug for HostDeliveryObservation
Source§impl<'de> Deserialize<'de> for HostDeliveryObservation
impl<'de> Deserialize<'de> for HostDeliveryObservation
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 HostDeliveryObservation
Source§impl PartialEq for HostDeliveryObservation
impl PartialEq for HostDeliveryObservation
Source§impl Serialize for HostDeliveryObservation
impl Serialize for HostDeliveryObservation
impl StructuralPartialEq for HostDeliveryObservation
Auto Trait Implementations§
impl Freeze for HostDeliveryObservation
impl RefUnwindSafe for HostDeliveryObservation
impl Send for HostDeliveryObservation
impl Sync for HostDeliveryObservation
impl Unpin for HostDeliveryObservation
impl UnsafeUnpin for HostDeliveryObservation
impl UnwindSafe for HostDeliveryObservation
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