#[non_exhaustive]pub struct Comment {
pub id: CommentId,
pub imported_id: Option<String>,
pub author: Option<String>,
pub date: Option<DateTime<Utc>>,
pub text: String,
pub anchors: Vec<TextAnchor>,
pub anchored_text: Option<String>,
pub resolved: Option<bool>,
pub parent_id: Option<CommentId>,
pub replies: Vec<CommentId>,
}Expand description
A comment extracted from the DOCX review layer.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: CommentIdStable comment identifier in the normalized model.
imported_id: Option<String>Original DOCX comment id when available.
Comment author.
date: Option<DateTime<Utc>>Comment creation time.
text: StringPlain-text comment body.
anchors: Vec<TextAnchor>Text anchors associated with this comment.
anchored_text: Option<String>Visible text covered by the resolved anchors when available.
resolved: Option<bool>Resolved state from extended comment metadata when available.
parent_id: Option<CommentId>Parent comment id for threaded replies.
replies: Vec<CommentId>Child reply ids for threaded comments.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Comment
impl<'de> Deserialize<'de> for Comment
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 Comment
impl StructuralPartialEq for Comment
Auto Trait Implementations§
impl Freeze for Comment
impl RefUnwindSafe for Comment
impl Send for Comment
impl Sync for Comment
impl Unpin for Comment
impl UnsafeUnpin for Comment
impl UnwindSafe for Comment
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>,
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.