pub struct ViaEventFrameV1 {
pub protocol_version: u16,
pub stream_id: ScopedReferenceV1,
pub seq: u64,
pub event_id: EventId,
pub causality: Vec<EventId>,
pub payload_hash: Sha256Digest,
pub scope: ViaScopeV1,
pub payload: ViaEventPayloadV1,
}Fields§
§protocol_version: u16§stream_id: ScopedReferenceV1§seq: u64§event_id: EventId§causality: Vec<EventId>§payload_hash: Sha256Digest§scope: ViaScopeV1§payload: ViaEventPayloadV1Implementations§
Source§impl ViaEventFrameV1
impl ViaEventFrameV1
pub fn new( stream_id: ScopedReferenceV1, seq: u64, event_id: EventId, causality: Vec<EventId>, scope: ViaScopeV1, payload: ViaEventPayloadV1, ) -> Result<Self, ValidationError>
pub fn validate(&self) -> Result<(), ValidationError>
Sourcepub fn validate_successor(&self, previous: &Self) -> Result<(), ValidationError>
pub fn validate_successor(&self, previous: &Self) -> Result<(), ValidationError>
Validate deterministic stream ordering against the immediately prior frame.
Trait Implementations§
Source§impl Clone for ViaEventFrameV1
impl Clone for ViaEventFrameV1
Source§impl Debug for ViaEventFrameV1
impl Debug for ViaEventFrameV1
Source§impl<'de> Deserialize<'de> for ViaEventFrameV1
impl<'de> Deserialize<'de> for ViaEventFrameV1
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 ViaEventFrameV1
Source§impl PartialEq for ViaEventFrameV1
impl PartialEq for ViaEventFrameV1
Source§impl Serialize for ViaEventFrameV1
impl Serialize for ViaEventFrameV1
impl StructuralPartialEq for ViaEventFrameV1
Auto Trait Implementations§
impl Forget for ViaEventFrameV1
impl Freeze for ViaEventFrameV1
impl Move for ViaEventFrameV1
impl RefUnwindSafe for ViaEventFrameV1
impl Send for ViaEventFrameV1
impl Sync for ViaEventFrameV1
impl Unpin for ViaEventFrameV1
impl UnsafeUnpin for ViaEventFrameV1
impl UnwindSafe for ViaEventFrameV1
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