pub struct ChatLine {Show 13 fields
pub platform: Platform,
pub channel: String,
pub id: Option<String>,
pub user: String,
pub color: Option<String>,
pub badges: Vec<Badge>,
pub reply_to: Option<String>,
pub note: Option<Note>,
pub uid: Option<String>,
pub extra: Extra,
pub stream: Option<StreamEv>,
pub content: String,
pub emotes: Vec<Emote>,
}Expand description
a normalized chat line, ready for a channel buffer.
Fields§
§platform: Platform§channel: String§id: Option<String>the platform’s own message id — what a later delete points at.
user: String§color: Option<String>§badges: Vec<Badge>§reply_to: Option<String>§note: Option<Note>set when this line is an event notice, not plain chat.
uid: Option<String>sender id in paint space (see Message::uid).
extra: Extra§stream: Option<StreamEv>raw stream lifecycle facts behind a go-live / offline / game-switch
note — what streamev pairs and dedupes on.
content: String§emotes: Vec<Emote>this message’s own emote refs (relay hsEmotes, twitch emotes tag,
kick [emote:id:name] tokens) — highest priority when parsing, see
emote::segments_with.
Trait Implementations§
impl StructuralPartialEq for ChatLine
Auto Trait Implementations§
impl Forget for ChatLine
impl Freeze for ChatLine
impl Move for ChatLine
impl RefUnwindSafe for ChatLine
impl Send for ChatLine
impl Sync for ChatLine
impl Unpin for ChatLine
impl UnsafeUnpin for ChatLine
impl UnwindSafe for ChatLine
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