pub struct Comment {
pub id: Option<String>,
pub kind: Option<String>,
pub created_time: Option<String>,
pub modified_time: Option<String>,
pub resolved: Option<bool>,
pub anchor: Option<String>,
pub replies: Option<Vec<Reply>>,
pub author: Option<User>,
pub deleted: Option<bool>,
pub html_content: Option<String>,
pub content: Option<String>,
pub quoted_file_content: Option<QuotedFileContent>,
}Expand description
A comment on a file.
Fields§
§id: Option<String>The ID of the comment.
kind: Option<String>Identifies what kind of resource this is.
This is always drive#comment.
created_time: Option<String>The time at which the comment was created (RFC 3339 date-time).
modified_time: Option<String>The last time the comment or any of its replies was modified (RFC 3339 date-time).
resolved: Option<bool>Whether the comment has been resolved by one of its replies.
anchor: Option<String>A region of the document represented as a JSON string.
For details on defining anchor properties, refer to Google’s Manage comments and replies documentation.
replies: Option<Vec<Reply>>The full list of replies to the comment in chronological order.
The author of the reply.
The author’s email address and permission ID will not be populated.
deleted: Option<bool>Whether the reply has been deleted.
A deleted reply has no content.
html_content: Option<String>The content of the reply with HTML formatting.
content: Option<String>The plain text content of the reply.
This field is used for setting the content, while
html_content should be displayed. This is
required on creates if no action is specified.
quoted_file_content: Option<QuotedFileContent>The file content to which the comment refers, typically within the anchor region.
For a text file, for example, this would be the text at the location of the comment.
Implementations§
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>,
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 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
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
key and return true if they are equal.