pub struct Message {
pub user: String,
pub text: String,
pub color: Option<String>,
pub heat: f64,
}Expand description
one chat line. heat is the channel’s heat snapshotted at arrival, so a
message sent during a spike stays warm in scrollback. color is the user’s
chat color (hex) if the platform sent one.
Fields§
§user: String§text: String§color: Option<String>§heat: f64Trait Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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