pub struct HashedEventRef {
pub(crate) event_id: OwnedEventId,
pub(crate) hashes: EventHash,
}Expand description
An event reference with content hash (room versions 1-2).
Fields§
§event_id: OwnedEventIdEvent ID.
hashes: EventHashContent hash of the referenced event.
Implementations§
Trait Implementations§
Source§impl AsEventId for HashedEventRef
impl AsEventId for HashedEventRef
Source§fn as_event_id(&self) -> &OwnedEventId
fn as_event_id(&self) -> &OwnedEventId
Returns a reference to the event ID.
Source§impl Clone for HashedEventRef
impl Clone for HashedEventRef
Source§fn clone(&self) -> HashedEventRef
fn clone(&self) -> HashedEventRef
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 HashedEventRef
impl Debug for HashedEventRef
Source§impl<'de> Deserialize<'de> for HashedEventRef
impl<'de> Deserialize<'de> for HashedEventRef
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 HashedEventRef
Source§impl PartialEq for HashedEventRef
impl PartialEq for HashedEventRef
Source§fn eq(&self, other: &HashedEventRef) -> bool
fn eq(&self, other: &HashedEventRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HashedEventRef
impl Serialize for HashedEventRef
impl StructuralPartialEq for HashedEventRef
Auto Trait Implementations§
impl Freeze for HashedEventRef
impl RefUnwindSafe for HashedEventRef
impl Send for HashedEventRef
impl Sync for HashedEventRef
impl Unpin for HashedEventRef
impl UnsafeUnpin for HashedEventRef
impl UnwindSafe for HashedEventRef
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.