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