pub struct Comment {
pub id: String,
pub author: Author,
pub content: String,
pub created_time: Option<String>,
pub resolved: bool,
pub anchor: Option<Anchor>,
pub quoted_text: Option<String>,
pub replies: Vec<Reply>,
}Expand description
A reviewer comment on the document, mapped from the Drive API.
Fields§
§id: StringThe Drive comment id (stable key; merge anchor in the org file).
Who wrote the comment.
content: StringThe comment text.
created_time: Option<String>When it was created (RFC 3339), if known.
resolved: boolWhether Google considers the comment resolved.
anchor: Option<Anchor>The opaque anchor blob, if present (DI-5).
quoted_text: Option<String>The quoted document text the comment refers to, used as the anchoring fallback (D2) when the anchor is unusable.
replies: Vec<Reply>Replies, in Google’s order.
Trait Implementations§
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,
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.