Struct google_youtube3::api::CommentSnippet[][src]

pub struct CommentSnippet {
    pub author_channel_id: Option<CommentSnippetAuthorChannelId>,
    pub author_channel_url: Option<String>,
    pub author_display_name: Option<String>,
    pub author_profile_image_url: Option<String>,
    pub can_rate: Option<bool>,
    pub channel_id: Option<String>,
    pub like_count: Option<u32>,
    pub moderation_status: Option<String>,
    pub parent_id: Option<String>,
    pub published_at: Option<String>,
    pub text_display: Option<String>,
    pub text_original: Option<String>,
    pub updated_at: Option<String>,
    pub video_id: Option<String>,
    pub viewer_rating: Option<String>,
}

Basic details about a comment, such as its author and text.

This type is not used in any activity, and only used as part of another schema.

Fields

author_channel_id: Option<CommentSnippetAuthorChannelId>

no description provided

author_channel_url: Option<String>

Link to the author's YouTube channel, if any.

author_display_name: Option<String>

The name of the user who posted the comment.

author_profile_image_url: Option<String>

The URL for the avatar of the user who posted the comment.

can_rate: Option<bool>

Whether the current viewer can rate this comment.

channel_id: Option<String>

The id of the corresponding YouTube channel. In case of a channel comment this is the channel the comment refers to. In case of a video comment it's the video's channel.

like_count: Option<u32>

The total number of likes this comment has received.

moderation_status: Option<String>

The comment's moderation status. Will not be set if the comments were requested through the id filter.

parent_id: Option<String>

The unique id of the parent comment, only set for replies.

published_at: Option<String>

The date and time when the comment was originally published.

text_display: Option<String>

The comment's text. The format is either plain text or HTML dependent on what has been requested. Even the plain text representation may differ from the text originally posted in that it may replace video links with video titles etc.

text_original: Option<String>

The comment's original raw text as initially posted or last updated. The original text will only be returned if it is accessible to the viewer, which is only guaranteed if the viewer is the comment's author.

updated_at: Option<String>

The date and time when the comment was last updated.

video_id: Option<String>

The ID of the video the comment refers to, if any.

viewer_rating: Option<String>

The rating the viewer has given to this comment. For the time being this will never return RATE_TYPE_DISLIKE and instead return RATE_TYPE_NONE. This may change in the future.

Trait Implementations

impl Clone for CommentSnippet[src]

impl Debug for CommentSnippet[src]

impl Default for CommentSnippet[src]

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

impl Part for CommentSnippet[src]

impl Serialize for CommentSnippet[src]

Auto Trait Implementations

impl RefUnwindSafe for CommentSnippet[src]

impl Send for CommentSnippet[src]

impl Sync for CommentSnippet[src]

impl Unpin for CommentSnippet[src]

impl UnwindSafe for CommentSnippet[src]

Blanket Implementations

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

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

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

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

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

impl<T> Instrument 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 = Infallible

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.