pub struct CommentThreadSnippet {
pub can_reply: Option<bool>,
pub channel_id: Option<String>,
pub is_public: Option<bool>,
pub post_id: Option<String>,
pub top_level_comment: Option<Comment>,
pub total_reply_count: Option<u32>,
pub video_id: Option<String>,
}Expand description
Basic details about a comment thread.
This type is not used in any activity, and only used as part of another schema.
Fields§
§can_reply: Option<bool>Whether the current viewer of the thread can reply to it. This is viewer specific - other viewers may see a different value for this field.
channel_id: Option<String>The YouTube channel the comments in the thread refer to or the channel with the video the comments refer to. If neither video_id nor post_id is set the comments refer to the channel itself.
is_public: Option<bool>Whether the thread (and therefore all its comments) is visible to all YouTube users.
post_id: Option<String>The ID of the post the comments refer to, if any.
top_level_comment: Option<Comment>The top level comment of this thread.
total_reply_count: Option<u32>The total number of replies (not including the top level comment).
video_id: Option<String>The ID of the video the comments refer to, if any.
Trait Implementations§
Source§impl Clone for CommentThreadSnippet
impl Clone for CommentThreadSnippet
Source§fn clone(&self) -> CommentThreadSnippet
fn clone(&self) -> CommentThreadSnippet
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommentThreadSnippet
impl Debug for CommentThreadSnippet
Source§impl Default for CommentThreadSnippet
impl Default for CommentThreadSnippet
Source§fn default() -> CommentThreadSnippet
fn default() -> CommentThreadSnippet
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommentThreadSnippet
impl<'de> Deserialize<'de> for CommentThreadSnippet
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CommentThreadSnippet
impl Serialize for CommentThreadSnippet
impl Part for CommentThreadSnippet
Auto Trait Implementations§
impl Freeze for CommentThreadSnippet
impl RefUnwindSafe for CommentThreadSnippet
impl Send for CommentThreadSnippet
impl Sync for CommentThreadSnippet
impl Unpin for CommentThreadSnippet
impl UnwindSafe for CommentThreadSnippet
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