pub struct Envelope {
pub v: u8,
pub svc: String,
pub msg_type: String,
pub flags: u32,
pub seq: Option<u64>,
pub room: Option<String>,
pub data: Option<Box<RawValue>>,
}Expand description
Ext Lane envelope (Text frame).
This is the canonical JSON structure parsed on the server. Services may
choose to further deserialize data depending on svc/type.
Fields§
§v: u8Protocol version.
svc: StringService name (e.g., “chat”).
msg_type: StringMessage type (field name is type in JSON).
flags: u32Feature flags bitmask.
seq: Option<u64>Optional sequence number.
room: Option<String>Optional room id.
data: Option<Box<RawValue>>Optional payload, stored as raw JSON (lazy parsing).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Envelope
impl<'de> Deserialize<'de> for Envelope
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Envelope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Envelope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Envelope
impl RefUnwindSafe for Envelope
impl Send for Envelope
impl Sync for Envelope
impl Unpin for Envelope
impl UnwindSafe for Envelope
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