#[non_exhaustive]pub struct ChatSseFrame {
pub event: ChatSseEvent,
pub id: Option<String>,
}Expand description
A parsed JMAP Chat SSE frame: event plus the id: line value (if any).
§id field semantics
Mirrors jmap_base_client::SseFrame: None means the frame had no
id: line or a bare id: reset. Callers should retain the previously-seen
ID across reconnects and send it as Last-Event-ID per RFC 8620 §7.3.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.event: ChatSseEventThe parsed event payload.
id: Option<String>The value of the SSE id: line, if any (used for Last-Event-ID on reconnect).
Trait Implementations§
Source§impl Clone for ChatSseFrame
impl Clone for ChatSseFrame
Source§fn clone(&self) -> ChatSseFrame
fn clone(&self) -> ChatSseFrame
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 moreAuto Trait Implementations§
impl Freeze for ChatSseFrame
impl RefUnwindSafe for ChatSseFrame
impl Send for ChatSseFrame
impl Sync for ChatSseFrame
impl Unpin for ChatSseFrame
impl UnsafeUnpin for ChatSseFrame
impl UnwindSafe for ChatSseFrame
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