pub struct ObservationIngressEnvelope {
pub node_id: NodeId,
pub cursor: NodeCursor,
pub received_at_ms: u64,
pub transport: ObservationTransport,
pub payload: ObservationIngressPayload,
}Fields§
§node_id: NodeId§cursor: NodeCursor§received_at_ms: u64§transport: ObservationTransport§payload: ObservationIngressPayloadImplementations§
Source§impl ObservationIngressEnvelope
impl ObservationIngressEnvelope
pub fn validate(&self) -> Result<(), ObservationApiError>
Sourcepub fn canonical_eq(&self, other: &Self) -> bool
pub fn canonical_eq(&self, other: &Self) -> bool
Equality of the Node-authoritative ingress fact.
Transport and local receive time are delivery metadata. They may differ when the same exact Node cursor is observed directly and through C2.
Trait Implementations§
Source§impl Clone for ObservationIngressEnvelope
impl Clone for ObservationIngressEnvelope
Source§impl Debug for ObservationIngressEnvelope
impl Debug for ObservationIngressEnvelope
Source§impl<'de> Deserialize<'de> for ObservationIngressEnvelope
impl<'de> Deserialize<'de> for ObservationIngressEnvelope
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 ObservationIngressEnvelope
impl StructuralPartialEq for ObservationIngressEnvelope
Auto Trait Implementations§
impl Freeze for ObservationIngressEnvelope
impl RefUnwindSafe for ObservationIngressEnvelope
impl Send for ObservationIngressEnvelope
impl Sync for ObservationIngressEnvelope
impl Unpin for ObservationIngressEnvelope
impl UnsafeUnpin for ObservationIngressEnvelope
impl UnwindSafe for ObservationIngressEnvelope
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