pub struct MessagesSnapshotEvent {
pub base: BaseEvent,
pub messages: Vec<Message>,
}Expand description
Event containing a complete snapshot of all messages.
This event is sent to provide the full message history to the client.
Fields§
§base: BaseEventCommon event fields (timestamp, rawEvent).
messages: Vec<Message>Complete list of messages.
Implementations§
Source§impl MessagesSnapshotEvent
impl MessagesSnapshotEvent
Sourcepub fn new(messages: Vec<Message>) -> MessagesSnapshotEvent
pub fn new(messages: Vec<Message>) -> MessagesSnapshotEvent
Creates a new MessagesSnapshotEvent with the given messages.
Sourcepub fn with_timestamp(self, timestamp: f64) -> MessagesSnapshotEvent
pub fn with_timestamp(self, timestamp: f64) -> MessagesSnapshotEvent
Sets the timestamp for this event.
Trait Implementations§
Source§impl Clone for MessagesSnapshotEvent
impl Clone for MessagesSnapshotEvent
Source§fn clone(&self) -> MessagesSnapshotEvent
fn clone(&self) -> MessagesSnapshotEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 MessagesSnapshotEvent
impl Debug for MessagesSnapshotEvent
Source§impl Default for MessagesSnapshotEvent
impl Default for MessagesSnapshotEvent
Source§fn default() -> MessagesSnapshotEvent
fn default() -> MessagesSnapshotEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessagesSnapshotEvent
impl<'de> Deserialize<'de> for MessagesSnapshotEvent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MessagesSnapshotEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MessagesSnapshotEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MessagesSnapshotEvent
impl PartialEq for MessagesSnapshotEvent
Source§impl Serialize for MessagesSnapshotEvent
impl Serialize for MessagesSnapshotEvent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for MessagesSnapshotEvent
Auto Trait Implementations§
impl Freeze for MessagesSnapshotEvent
impl RefUnwindSafe for MessagesSnapshotEvent
impl Send for MessagesSnapshotEvent
impl Sync for MessagesSnapshotEvent
impl Unpin for MessagesSnapshotEvent
impl UnsafeUnpin for MessagesSnapshotEvent
impl UnwindSafe for MessagesSnapshotEvent
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