pub enum OwnedLinkedChunkId {
Room(OwnedRoomId),
Thread(OwnedRoomId, OwnedEventId),
}
Expand description
An identifier for a linked chunk; owned variant.
Variants§
Implementations§
Source§impl OwnedLinkedChunkId
impl OwnedLinkedChunkId
pub fn as_ref(&self) -> LinkedChunkId<'_>
pub fn room_id(&self) -> &RoomId
Trait Implementations§
Source§impl Clone for OwnedLinkedChunkId
impl Clone for OwnedLinkedChunkId
Source§fn clone(&self) -> OwnedLinkedChunkId
fn clone(&self) -> OwnedLinkedChunkId
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 OwnedLinkedChunkId
impl Debug for OwnedLinkedChunkId
Source§impl<'de> Deserialize<'de> for OwnedLinkedChunkId
impl<'de> Deserialize<'de> for OwnedLinkedChunkId
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 OwnedLinkedChunkId
impl Display for OwnedLinkedChunkId
Source§impl<'a> From<&'a OwnedLinkedChunkId> for LinkedChunkId<'a>
impl<'a> From<&'a OwnedLinkedChunkId> for LinkedChunkId<'a>
Source§fn from(value: &'a OwnedLinkedChunkId) -> Self
fn from(value: &'a OwnedLinkedChunkId) -> Self
Converts to this type from the input type.
Source§impl From<LinkedChunkId<'_>> for OwnedLinkedChunkId
impl From<LinkedChunkId<'_>> for OwnedLinkedChunkId
Source§fn from(value: LinkedChunkId<'_>) -> Self
fn from(value: LinkedChunkId<'_>) -> Self
Converts to this type from the input type.
Source§impl Hash for OwnedLinkedChunkId
impl Hash for OwnedLinkedChunkId
Source§impl PartialEq<&OwnedLinkedChunkId> for LinkedChunkId<'_>
impl PartialEq<&OwnedLinkedChunkId> for LinkedChunkId<'_>
Source§impl PartialEq<LinkedChunkId<'_>> for OwnedLinkedChunkId
impl PartialEq<LinkedChunkId<'_>> for OwnedLinkedChunkId
Source§impl PartialEq for OwnedLinkedChunkId
impl PartialEq for OwnedLinkedChunkId
Source§impl Serialize for OwnedLinkedChunkId
impl Serialize for OwnedLinkedChunkId
impl Eq for OwnedLinkedChunkId
impl StructuralPartialEq for OwnedLinkedChunkId
Auto Trait Implementations§
impl Freeze for OwnedLinkedChunkId
impl RefUnwindSafe for OwnedLinkedChunkId
impl Send for OwnedLinkedChunkId
impl Sync for OwnedLinkedChunkId
impl Unpin for OwnedLinkedChunkId
impl UnwindSafe for OwnedLinkedChunkId
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> CompatExt for T
impl<T> CompatExt for T
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.Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>