pub struct Payload<F, T, S, B> {
pub from: F,
pub lead: bool,
pub thread: Option<T>,
pub to: S,
pub body: B,
pub kind: Kind,
pub at_ms: u64,
}Expand description
Fields§
§from: FThe user and the session ID of the sender.
lead: boolTrue when the sender posts as the lead (R198). The place and the claims of the sender are not signed.
thread: Option<T>The thread of the post. None for a direct message.
to: S§body: B§kind: Kind§at_ms: u64The time of the message, in milliseconds since the Unix epoch.
Implementations§
Trait Implementations§
Source§impl<'de, F, T, S, B> Deserialize<'de> for Payload<F, T, S, B>
impl<'de, F, T, S, B> Deserialize<'de> for Payload<F, T, S, B>
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
Source§impl<F: PartialEq, T: PartialEq, S: PartialEq, B: PartialEq> PartialEq for Payload<F, T, S, B>
impl<F: PartialEq, T: PartialEq, S: PartialEq, B: PartialEq> PartialEq for Payload<F, T, S, B>
impl<F: Copy, T: Copy, S: Copy, B: Copy> Copy for Payload<F, T, S, B>
impl<F: Eq, T: Eq, S: Eq, B: Eq> Eq for Payload<F, T, S, B>
impl<F, T, S, B> StructuralPartialEq for Payload<F, T, S, B>
Auto Trait Implementations§
impl<F, T, S, B> Freeze for Payload<F, T, S, B>
impl<F, T, S, B> RefUnwindSafe for Payload<F, T, S, B>
impl<F, T, S, B> Send for Payload<F, T, S, B>
impl<F, T, S, B> Sync for Payload<F, T, S, B>
impl<F, T, S, B> Unpin for Payload<F, T, S, B>
impl<F, T, S, B> UnsafeUnpin for Payload<F, T, S, B>
impl<F, T, S, B> UnwindSafe for Payload<F, T, S, B>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.