pub struct CommentSnippet {Show 15 fields
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<DateTime<Utc>>,
pub text_display: Option<String>,
pub text_original: Option<String>,
pub updated_at: Option<DateTime<Utc>>,
pub video_id: Option<String>,
pub viewer_rating: Option<String>,
}
Expand description
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§
no description provided
Link to the author’s YouTube channel, if any.
The name of the user who posted the comment.
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<DateTime<Utc>>
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<DateTime<Utc>>
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§
Source§impl Clone for CommentSnippet
impl Clone for CommentSnippet
Source§fn clone(&self) -> CommentSnippet
fn clone(&self) -> CommentSnippet
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CommentSnippet
impl Debug for CommentSnippet
Source§impl Default for CommentSnippet
impl Default for CommentSnippet
Source§fn default() -> CommentSnippet
fn default() -> CommentSnippet
Source§impl<'de> Deserialize<'de> for CommentSnippet
impl<'de> Deserialize<'de> for CommentSnippet
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>,
Source§impl Serialize for CommentSnippet
impl Serialize for CommentSnippet
impl Part for CommentSnippet
Auto Trait Implementations§
impl Freeze for CommentSnippet
impl RefUnwindSafe for CommentSnippet
impl Send for CommentSnippet
impl Sync for CommentSnippet
impl Unpin for CommentSnippet
impl UnwindSafe for CommentSnippet
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more