pub struct ConversationIdentity {
pub conversation_id: String,
pub canonical_thread_kind: String,
pub canonical_thread_id: String,
pub storage_thread_ref: ConversationStorageThreadRef,
pub aliases: Vec<ConversationAlias>,
pub identity_scope: ConversationIdentityScope,
pub migration_state: ConversationMigrationState,
}Fields§
§conversation_id: String§canonical_thread_kind: String§canonical_thread_id: String§storage_thread_ref: ConversationStorageThreadRef§aliases: Vec<ConversationAlias>§identity_scope: ConversationIdentityScope§migration_state: ConversationMigrationStateImplementations§
Source§impl ConversationIdentity
impl ConversationIdentity
pub fn from_thread_ref(thread: &ThreadRef) -> Self
pub fn from_thread_ref_for_owner(thread: &ThreadRef, owner_did: &str) -> Self
pub fn from_storage_parts( kind: impl Into<String>, id: impl Into<String>, ) -> Self
pub fn from_storage_parts_for_owner( kind: impl Into<String>, id: impl Into<String>, owner_did: &str, ) -> Self
Trait Implementations§
Source§impl Clone for ConversationIdentity
impl Clone for ConversationIdentity
Source§fn clone(&self) -> ConversationIdentity
fn clone(&self) -> ConversationIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConversationIdentity
impl Debug for ConversationIdentity
Source§impl<'de> Deserialize<'de> for ConversationIdentity
impl<'de> Deserialize<'de> for ConversationIdentity
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
impl Eq for ConversationIdentity
Source§impl PartialEq for ConversationIdentity
impl PartialEq for ConversationIdentity
Source§fn eq(&self, other: &ConversationIdentity) -> bool
fn eq(&self, other: &ConversationIdentity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConversationIdentity
impl Serialize for ConversationIdentity
impl StructuralPartialEq for ConversationIdentity
Auto Trait Implementations§
impl Freeze for ConversationIdentity
impl RefUnwindSafe for ConversationIdentity
impl Send for ConversationIdentity
impl Sync for ConversationIdentity
impl Unpin for ConversationIdentity
impl UnsafeUnpin for ConversationIdentity
impl UnwindSafe for ConversationIdentity
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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§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.