pub enum ThreadPointer {
Event {
id: String,
relay: Option<String>,
kind: Option<u32>,
},
Address {
coord: String,
relay: Option<String>,
kind: Option<u32>,
},
External {
uri: String,
},
}Expand description
Anchor for a reply / comment. Address and External variants terminate ancestor-walk: there is no event id to hydrate.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ThreadPointer
impl Clone for ThreadPointer
Source§fn clone(&self) -> ThreadPointer
fn clone(&self) -> ThreadPointer
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 ThreadPointer
impl Debug for ThreadPointer
Source§impl<'de> Deserialize<'de> for ThreadPointer
impl<'de> Deserialize<'de> for ThreadPointer
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 ThreadPointer
Source§impl Hash for ThreadPointer
impl Hash for ThreadPointer
Source§impl Ord for ThreadPointer
impl Ord for ThreadPointer
Source§fn cmp(&self, other: &ThreadPointer) -> Ordering
fn cmp(&self, other: &ThreadPointer) -> Ordering
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
Source§impl PartialEq for ThreadPointer
impl PartialEq for ThreadPointer
Source§fn eq(&self, other: &ThreadPointer) -> bool
fn eq(&self, other: &ThreadPointer) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ThreadPointer
impl PartialOrd for ThreadPointer
Source§impl Serialize for ThreadPointer
impl Serialize for ThreadPointer
impl StructuralPartialEq for ThreadPointer
Auto Trait Implementations§
impl Freeze for ThreadPointer
impl RefUnwindSafe for ThreadPointer
impl Send for ThreadPointer
impl Sync for ThreadPointer
impl Unpin for ThreadPointer
impl UnsafeUnpin for ThreadPointer
impl UnwindSafe for ThreadPointer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.