pub struct SentinelMessage {
pub id: String,
pub from_session: String,
pub from_agent: String,
pub to_session: Option<String>,
pub content: String,
pub timestamp: u64,
pub read_by: Vec<String>,
}Fields§
§id: String§from_session: String§from_agent: String§to_session: Option<String>§content: String§timestamp: u64§read_by: Vec<String>Trait Implementations§
Source§impl Clone for SentinelMessage
impl Clone for SentinelMessage
Source§fn clone(&self) -> SentinelMessage
fn clone(&self) -> SentinelMessage
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 SentinelMessage
impl Debug for SentinelMessage
Source§impl<'de> Deserialize<'de> for SentinelMessage
impl<'de> Deserialize<'de> for SentinelMessage
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 SentinelMessage
impl RefUnwindSafe for SentinelMessage
impl Send for SentinelMessage
impl Sync for SentinelMessage
impl Unpin for SentinelMessage
impl UnsafeUnpin for SentinelMessage
impl UnwindSafe for SentinelMessage
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