pub struct ConversationKey {
pub channel: ChannelId,
pub space: Option<String>,
pub room: String,
pub thread: Option<String>,
}Expand description
Identifies one conversation. Messages with the same key are handled in order and share history.
Fields§
§channel: ChannelIdThe channel instance.
space: Option<String>Workspace, guild or Google Chat space, when the platform has one above rooms.
room: StringChat, channel or direct-message id.
thread: Option<String>Thread inside the room, when the platform has threads.
Implementations§
Trait Implementations§
Source§impl Clone for ConversationKey
impl Clone for ConversationKey
Source§impl Debug for ConversationKey
impl Debug for ConversationKey
Source§impl<'de> Deserialize<'de> for ConversationKey
impl<'de> Deserialize<'de> for ConversationKey
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 Display for ConversationKey
Stable text form used as a storage key: parts joined by |, with \ and | escaped and -
standing for a missing part (a literal - is escaped as \-).
impl Display for ConversationKey
Stable text form used as a storage key: parts joined by |, with \ and | escaped and -
standing for a missing part (a literal - is escaped as \-).
impl Eq for ConversationKey
Source§impl Hash for ConversationKey
impl Hash for ConversationKey
Source§impl Ord for ConversationKey
impl Ord for ConversationKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ConversationKey
impl PartialEq for ConversationKey
Source§impl PartialOrd for ConversationKey
impl PartialOrd for ConversationKey
Source§impl Serialize for ConversationKey
impl Serialize for ConversationKey
impl StructuralPartialEq for ConversationKey
Auto Trait Implementations§
impl Freeze for ConversationKey
impl RefUnwindSafe for ConversationKey
impl Send for ConversationKey
impl Sync for ConversationKey
impl Unpin for ConversationKey
impl UnsafeUnpin for ConversationKey
impl UnwindSafe for ConversationKey
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