Struct google_youtube3::api::LiveChatMessageSnippet
source · pub struct LiveChatMessageSnippet {Show 18 fields
pub author_channel_id: Option<String>,
pub display_message: Option<String>,
pub fan_funding_event_details: Option<LiveChatFanFundingEventDetails>,
pub gift_membership_received_details: Option<LiveChatGiftMembershipReceivedDetails>,
pub has_display_content: Option<bool>,
pub live_chat_id: Option<String>,
pub member_milestone_chat_details: Option<LiveChatMemberMilestoneChatDetails>,
pub membership_gifting_details: Option<LiveChatMembershipGiftingDetails>,
pub message_deleted_details: Option<LiveChatMessageDeletedDetails>,
pub message_retracted_details: Option<LiveChatMessageRetractedDetails>,
pub new_sponsor_details: Option<LiveChatNewSponsorDetails>,
pub poll_details: Option<LiveChatPollDetails>,
pub published_at: Option<DateTime<Utc>>,
pub super_chat_details: Option<LiveChatSuperChatDetails>,
pub super_sticker_details: Option<LiveChatSuperStickerDetails>,
pub text_message_details: Option<LiveChatTextMessageDetails>,
pub type_: Option<String>,
pub user_banned_details: Option<LiveChatUserBannedMessageDetails>,
}
Expand description
Next ID: 34
This type is not used in any activity, and only used as part of another schema.
Fields§
The ID of the user that authored this message, this field is not always filled. textMessageEvent - the user that wrote the message fanFundingEvent - the user that funded the broadcast newSponsorEvent - the user that just became a sponsor memberMilestoneChatEvent - the member that sent the message membershipGiftingEvent - the user that made the purchase giftMembershipReceivedEvent - the user that received the gift membership messageDeletedEvent - the moderator that took the action messageRetractedEvent - the author that retracted their message userBannedEvent - the moderator that took the action superChatEvent - the user that made the purchase superStickerEvent - the user that made the purchase pollEvent - the user that created the poll
display_message: Option<String>
Contains a string that can be displayed to the user. If this field is not present the message is silent, at the moment only messages of type TOMBSTONE and CHAT_ENDED_EVENT are silent.
fan_funding_event_details: Option<LiveChatFanFundingEventDetails>
Details about the funding event, this is only set if the type is ‘fanFundingEvent’.
gift_membership_received_details: Option<LiveChatGiftMembershipReceivedDetails>
Details about the Gift Membership Received event, this is only set if the type is ‘giftMembershipReceivedEvent’.
has_display_content: Option<bool>
Whether the message has display content that should be displayed to users.
live_chat_id: Option<String>
no description provided
member_milestone_chat_details: Option<LiveChatMemberMilestoneChatDetails>
Details about the Member Milestone Chat event, this is only set if the type is ‘memberMilestoneChatEvent’.
membership_gifting_details: Option<LiveChatMembershipGiftingDetails>
Details about the Membership Gifting event, this is only set if the type is ‘membershipGiftingEvent’.
message_deleted_details: Option<LiveChatMessageDeletedDetails>
no description provided
message_retracted_details: Option<LiveChatMessageRetractedDetails>
no description provided
new_sponsor_details: Option<LiveChatNewSponsorDetails>
Details about the New Member Announcement event, this is only set if the type is ‘newSponsorEvent’. Please note that “member” is the new term for “sponsor”.
poll_details: Option<LiveChatPollDetails>
Details about the poll event, this is only set if the type is ‘pollEvent’.
published_at: Option<DateTime<Utc>>
The date and time when the message was orignally published.
super_chat_details: Option<LiveChatSuperChatDetails>
Details about the Super Chat event, this is only set if the type is ‘superChatEvent’.
super_sticker_details: Option<LiveChatSuperStickerDetails>
Details about the Super Sticker event, this is only set if the type is ‘superStickerEvent’.
text_message_details: Option<LiveChatTextMessageDetails>
Details about the text message, this is only set if the type is ‘textMessageEvent’.
type_: Option<String>
The type of message, this will always be present, it determines the contents of the message as well as which fields will be present.
user_banned_details: Option<LiveChatUserBannedMessageDetails>
no description provided
Trait Implementations§
source§impl Clone for LiveChatMessageSnippet
impl Clone for LiveChatMessageSnippet
source§fn clone(&self) -> LiveChatMessageSnippet
fn clone(&self) -> LiveChatMessageSnippet
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more