pub struct Thread {Show 14 fields
pub thread: String,
pub id: String,
pub anchor: Anchor,
pub from: Option<u32>,
pub to: Option<u32>,
pub detached: bool,
pub quote: String,
pub question: String,
pub to_whom: Option<String>,
pub by: String,
pub principal: String,
pub at: i64,
pub resolved: Option<Resolution>,
pub replies: Vec<Reply>,
}Expand description
V2-30: a question on a range of a note, and its thread.
Fields§
§thread: StringIts id, 8 characters as a note’s.
id: StringThe note it is on.
anchor: AnchorThe range as the note’s CRDT holds it: two Yjs relative positions (base64), which follow the text.
from: Option<u32>The range now, in characters of the text — absent when it is detached.
to: Option<u32>§detached: boolThe text it was on was deleted whole: the thread is kept, listed at the end.
quote: StringThe text the range held when it was asked.
question: StringThe question, markdown.
to_whom: Option<String>Whom it is asked of — an agent’s name, agent for any (absent: anyone reading).
by: String§principal: String§at: i64When, unix milliseconds.
resolved: Option<Resolution>When it was resolved and by whom — absent while it is open.
replies: Vec<Reply>The answers, in order.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Thread
impl<'de> Deserialize<'de> for Thread
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 Thread
Source§impl JsonSchema for Thread
impl JsonSchema for Thread
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Thread
Auto Trait Implementations§
impl Forget for Thread
impl Freeze for Thread
impl Move for Thread
impl RefUnwindSafe for Thread
impl Send for Thread
impl Sync for Thread
impl Unpin for Thread
impl UnsafeUnpin for Thread
impl UnwindSafe for Thread
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§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.