pub struct EventEnvelope {
pub v: u16,
pub kind: String,
pub community_id: CommunityId,
pub channel_id: Option<ChannelId>,
pub stream: Stream,
pub sequence: Option<u64>,
pub timestamp: u64,
pub actor_id: Option<MemberId>,
pub body: Box<RawValue>,
}Expand description
{ "v", "type", "community_id", "channel_id"?, "stream", "sequence"?, "timestamp", "actor_id", "body" } (§7.4). Deserialisation validates with EventEnvelope::validate.
Fields§
§v: u16Envelope version.
kind: StringEvent name (§9.2).
community_id: CommunityIdThe community.
channel_id: Option<ChannelId>Present for channel-stream and channel-related member-stream events.
stream: StreamThe stream.
sequence: Option<u64>channel_seq or member_seq; absent on the live stream.
timestamp: u64Host time of acceptance, ms since the Unix epoch.
actor_id: Option<MemberId>The member who caused the event; null for host-initiated events.
body: Box<RawValue>The event body object.
Implementations§
Source§impl EventEnvelope
impl EventEnvelope
Trait Implementations§
Source§impl Clone for EventEnvelope
impl Clone for EventEnvelope
Source§fn clone(&self) -> EventEnvelope
fn clone(&self) -> EventEnvelope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EventEnvelope
impl Debug for EventEnvelope
Source§impl<'de> Deserialize<'de> for EventEnvelope
impl<'de> Deserialize<'de> for EventEnvelope
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EventEnvelope
impl RefUnwindSafe for EventEnvelope
impl Send for EventEnvelope
impl Sync for EventEnvelope
impl Unpin for EventEnvelope
impl UnsafeUnpin for EventEnvelope
impl UnwindSafe for EventEnvelope
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