pub struct ReplyScope {
pub conversation: String,
pub thread: Option<String>,
pub reply_to: Option<String>,
pub correlation: Option<String>,
}Expand description
Stable scope describing where a reply is anchored (conversation/thread/reply).
Fields§
§conversation: StringConversation identifier.
thread: Option<String>Optional thread/topic identifier.
reply_to: Option<String>Optional reply-to identifier.
correlation: Option<String>Optional correlation identifier.
Implementations§
Source§impl ReplyScope
impl ReplyScope
Sourcepub fn scope_hash(&self) -> String
pub fn scope_hash(&self) -> String
Returns a deterministic hash for the scope.
Trait Implementations§
Source§impl Clone for ReplyScope
impl Clone for ReplyScope
Source§fn clone(&self) -> ReplyScope
fn clone(&self) -> ReplyScope
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 ReplyScope
impl Debug for ReplyScope
Source§impl<'de> Deserialize<'de> for ReplyScope
impl<'de> Deserialize<'de> for ReplyScope
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 Hash for ReplyScope
impl Hash for ReplyScope
Source§impl PartialEq for ReplyScope
impl PartialEq for ReplyScope
Source§impl Serialize for ReplyScope
impl Serialize for ReplyScope
impl Eq for ReplyScope
impl StructuralPartialEq for ReplyScope
Auto Trait Implementations§
impl Freeze for ReplyScope
impl RefUnwindSafe for ReplyScope
impl Send for ReplyScope
impl Sync for ReplyScope
impl Unpin for ReplyScope
impl UnwindSafe for ReplyScope
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.