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§

§author_channel_id: Option<String>

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

source§

fn clone(&self) -> LiveChatMessageSnippet

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for LiveChatMessageSnippet

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for LiveChatMessageSnippet

source§

fn default() -> LiveChatMessageSnippet

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for LiveChatMessageSnippet

source§

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 LiveChatMessageSnippet

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Part for LiveChatMessageSnippet

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

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