pub struct CommentRecord {Show 13 fields
pub id: u32,
pub ref: String,
pub author: String,
pub initials: Option<String>,
pub date: Option<String>,
pub text: String,
pub parent: Option<u32>,
pub done: bool,
pub paragraph: Option<String>,
pub last_paragraph: Option<String>,
pub anchor_text: String,
pub before: String,
pub after: String,
}Expand description
One comment with its thread position and where it sits.
Fields§
§id: u32w:id of the comment.
ref: StringThe id the view and jubarte comments print: c{id}.
w:author.
initials: Option<String>w:initials.
date: Option<String>The linked UTC instant, written in the author’s local offset when both
times record a whole-minute difference within ±14:00; otherwise Z.
Without a valid w16cex:dateUtc, w:date as stored.
text: StringComment text, paragraphs (and line breaks) joined by \n.
parent: Option<u32>w:id of the comment this one replies to.
done: boolw15:done: the thread is resolved.
paragraph: Option<String>Story and paragraph id of the range start (p12), or of the
reference when the comment has no range.
last_paragraph: Option<String>Story and paragraph id of the range end (p14) when the range
ends in a later paragraph than it starts; None otherwise.
anchor_text: StringThe anchored text, exact; paragraphs joined by \n.
before: StringUp to 80 characters before the anchor in its first paragraph.
after: StringUp to 80 characters after the anchor in its last paragraph.
Trait Implementations§
Source§impl Clone for CommentRecord
impl Clone for CommentRecord
Source§fn clone(&self) -> CommentRecord
fn clone(&self) -> CommentRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CommentRecord
impl Debug for CommentRecord
Source§impl<'de> Deserialize<'de> for CommentRecord
impl<'de> Deserialize<'de> for CommentRecord
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommentRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommentRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for CommentRecord
Source§impl PartialEq for CommentRecord
impl PartialEq for CommentRecord
Source§impl Serialize for CommentRecord
impl Serialize for CommentRecord
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for CommentRecord
Auto Trait Implementations§
impl Forget for CommentRecord
impl Freeze for CommentRecord
impl Move for CommentRecord
impl RefUnwindSafe for CommentRecord
impl Send for CommentRecord
impl Sync for CommentRecord
impl Unpin for CommentRecord
impl UnsafeUnpin for CommentRecord
impl UnwindSafe for CommentRecord
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
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
key and return true if they are equal.