pub struct MessageRef {
pub message_id: String,
pub sender: PeerId,
pub timestamp: SystemTime,
pub message_type: String,
}
Expand description
Reference to a message in the index
Fields§
§message_id: String
§sender: PeerId
§timestamp: SystemTime
§message_type: String
Trait Implementations§
Source§impl Clone for MessageRef
impl Clone for MessageRef
Source§fn clone(&self) -> MessageRef
fn clone(&self) -> MessageRef
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MessageRef
impl Debug for MessageRef
Source§impl<'de> Deserialize<'de> for MessageRef
impl<'de> Deserialize<'de> for MessageRef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MessageRef
impl RefUnwindSafe for MessageRef
impl Send for MessageRef
impl Sync for MessageRef
impl Unpin for MessageRef
impl UnwindSafe for MessageRef
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