pub struct MessagePage {
pub messages: Vec<Message>,
pub start_time: i64,
pub end_time: i64,
pub start_digest: Vec<u8>,
pub end_digest: Vec<u8>,
}
Expand description
A page of messages. Pulled from server via HTTP.
Fields§
§messages: Vec<Message>
Collection of messages.
start_time: i64
The received time of the earliest message in the page.
end_time: i64
The received time of the latest message in the page.
start_digest: Vec<u8>
The payload digest of the earliest message in the page.
end_digest: Vec<u8>
The payload digest of the latest message in the page.
Implementations§
Source§impl MessagePage
impl MessagePage
Sourcepub fn into_payload_page(self) -> PayloadPage
pub fn into_payload_page(self) -> PayloadPage
Convert the MessagePage into a PayloadPage.
Trait Implementations§
Source§impl Clone for MessagePage
impl Clone for MessagePage
Source§fn clone(&self) -> MessagePage
fn clone(&self) -> MessagePage
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 MessagePage
impl Debug for MessagePage
Source§impl Default for MessagePage
impl Default for MessagePage
Source§fn default() -> MessagePage
fn default() -> MessagePage
Returns the “default value” for a type. Read more
Source§impl Into<PayloadPage> for MessagePage
impl Into<PayloadPage> for MessagePage
Source§fn into(self) -> PayloadPage
fn into(self) -> PayloadPage
Converts this type into the (usually inferred) input type.
Source§impl Message for MessagePage
impl Message for MessagePage
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for MessagePage
impl PartialEq for MessagePage
impl StructuralPartialEq for MessagePage
Auto Trait Implementations§
impl Freeze for MessagePage
impl RefUnwindSafe for MessagePage
impl Send for MessagePage
impl Sync for MessagePage
impl Unpin for MessagePage
impl UnwindSafe for MessagePage
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