pub struct ThreadEdge {
pub event_id: String,
pub author_pubkey: String,
pub kind: u32,
pub created_at: u64,
pub parent: Option<ThreadPointer>,
pub root: Option<ThreadPointer>,
pub parent_author_pubkey: Option<String>,
}Expand description
Per-event threading facts keyed by event id.
Fields§
§event_id: StringEvent id this row describes.
Author pubkey copied from the event.
kind: u32Raw event kind copied from the event. The projection does not branch on it.
created_at: u64Event creation time as Unix seconds.
parent: Option<ThreadPointer>Direct parent resolved from e tag grammar.
root: Option<ThreadPointer>Thread root resolved from e tag grammar.
Best-effort parent-author hint, usually the first accompanying p tag.
Trait Implementations§
Source§impl Clone for ThreadEdge
impl Clone for ThreadEdge
Source§fn clone(&self) -> ThreadEdge
fn clone(&self) -> ThreadEdge
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 ThreadEdge
impl Debug for ThreadEdge
Source§impl<'de> Deserialize<'de> for ThreadEdge
impl<'de> Deserialize<'de> for ThreadEdge
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 ThreadEdge
Source§impl PartialEq for ThreadEdge
impl PartialEq for ThreadEdge
Source§fn eq(&self, other: &ThreadEdge) -> bool
fn eq(&self, other: &ThreadEdge) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ThreadEdge
impl Serialize for ThreadEdge
impl StructuralPartialEq for ThreadEdge
Auto Trait Implementations§
impl Freeze for ThreadEdge
impl RefUnwindSafe for ThreadEdge
impl Send for ThreadEdge
impl Sync for ThreadEdge
impl Unpin for ThreadEdge
impl UnsafeUnpin for ThreadEdge
impl UnwindSafe for ThreadEdge
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,
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.