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 moreSource§impl Debug for LiveChatMessageSnippet
impl Debug for LiveChatMessageSnippet
Source§impl Default for LiveChatMessageSnippet
impl Default for LiveChatMessageSnippet
Source§fn default() -> LiveChatMessageSnippet
fn default() -> LiveChatMessageSnippet
Source§impl<'de> Deserialize<'de> for LiveChatMessageSnippet
impl<'de> Deserialize<'de> for LiveChatMessageSnippet
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 LiveChatMessageSnippet
impl Serialize for LiveChatMessageSnippet
impl Part for LiveChatMessageSnippet
Auto Trait Implementations§
impl Freeze for LiveChatMessageSnippet
impl RefUnwindSafe for LiveChatMessageSnippet
impl Send for LiveChatMessageSnippet
impl Sync for LiveChatMessageSnippet
impl Unpin for LiveChatMessageSnippet
impl UnwindSafe for LiveChatMessageSnippet
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