[][src]Struct google_drive2::Comment

pub struct Comment {
    pub status: Option<String>,
    pub self_link: Option<String>,
    pub kind: Option<String>,
    pub author: Option<User>,
    pub deleted: Option<bool>,
    pub created_date: Option<String>,
    pub html_content: Option<String>,
    pub content: Option<String>,
    pub modified_date: Option<String>,
    pub context: Option<CommentContext>,
    pub replies: Option<Vec<CommentReply>>,
    pub comment_id: Option<String>,
    pub anchor: Option<String>,
    pub file_title: Option<String>,
    pub file_id: Option<String>,
}

A comment on a file in Google Drive.

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

status: Option<String>

The status of this comment. Status can be changed by posting a reply to a comment with the desired status.

  • "open" - The comment is still open.
  • "resolved" - The comment has been resolved by one of its replies.
self_link: Option<String>

A link back to this comment.

kind: Option<String>

This is always drive#comment.

author: Option<User>

The user who wrote this comment.

deleted: Option<bool>

Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed.

created_date: Option<String>

The date when this comment was first created.

html_content: Option<String>

HTML formatted content for this comment.

content: Option<String>

The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment's content.

modified_date: Option<String>

The date when this comment or any of its replies were last modified.

context: Option<CommentContext>

The context of the file which is being commented on.

replies: Option<Vec<CommentReply>>

Replies to this post.

comment_id: Option<String>

The ID of the comment.

anchor: Option<String>

A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties.

file_title: Option<String>

The title of the file which this comment is addressing.

file_id: Option<String>

The file which this comment is addressing.

Trait Implementations

impl Resource for Comment[src]

impl ResponseResult for Comment[src]

impl RequestValue for Comment[src]

impl Clone for Comment[src]

impl Default for Comment[src]

impl Debug for Comment[src]

impl Serialize for Comment[src]

impl<'de> Deserialize<'de> for Comment[src]

Auto Trait Implementations

impl Send for Comment

impl Sync for Comment

impl Unpin for Comment

impl UnwindSafe for Comment

impl RefUnwindSafe for Comment

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]