pub struct Extra {
pub reply_text: String,
pub action: bool,
pub first: bool,
pub highlight: bool,
pub ts: u64,
}Expand description
per-line extras that change how a chat line looks, grouped so a new face only has to carry one field.
Fields§
§reply_text: Stringthe text of the message being replied to (sanitized, may be empty).
action: bool/me — rendered in the user’s color, italic.
first: boolthe user’s first message in this channel.
highlight: boolredeemed “highlight my message” — rendered reverse-video.
ts: u64wall-clock seconds when the line landed (0 = unknown) — for HH:MM.
Trait Implementations§
impl StructuralPartialEq for Extra
Auto Trait Implementations§
impl Forget for Extra
impl Freeze for Extra
impl RefUnwindSafe for Extra
impl Send for Extra
impl Sync for Extra
impl Unpin for Extra
impl UnsafeUnpin for Extra
impl UnwindSafe for Extra
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