Struct rive_models::channel::ChannelUnread
source · pub struct ChannelUnread {
pub id: ChannelCompositeKey,
pub last_id: Option<String>,
pub mentions: Option<Vec<String>>,
}Expand description
Representation of the state of a channel from the perspective of a user
Fields§
§id: ChannelCompositeKeyComposite key pointing to a user’s view of a channel
last_id: Option<String>ID of the last message read in this channel by a user
mentions: Option<Vec<String>>Array of message ids that mention the user
Trait Implementations§
source§impl Clone for ChannelUnread
impl Clone for ChannelUnread
source§fn clone(&self) -> ChannelUnread
fn clone(&self) -> ChannelUnread
Returns a copy 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 ChannelUnread
impl Debug for ChannelUnread
source§impl<'de> Deserialize<'de> for ChannelUnread
impl<'de> Deserialize<'de> for ChannelUnread
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 RefUnwindSafe for ChannelUnread
impl Send for ChannelUnread
impl Sync for ChannelUnread
impl Unpin for ChannelUnread
impl UnwindSafe for ChannelUnread
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