Display nicks with hashed color
This commit is contained in:
parent
37d10821a4
commit
11422801b0
8 changed files with 92 additions and 6 deletions
|
|
@ -4,6 +4,7 @@ use std::hash::Hash;
|
|||
|
||||
use async_trait::async_trait;
|
||||
use chrono::{DateTime, Utc};
|
||||
use crossterm::style::ContentStyle;
|
||||
|
||||
pub trait Msg {
|
||||
type Id: Clone + Debug + Hash + Eq + Ord;
|
||||
|
|
@ -12,6 +13,7 @@ pub trait Msg {
|
|||
|
||||
fn time(&self) -> DateTime<Utc>;
|
||||
fn nick(&self) -> String;
|
||||
fn nick_style(&self) -> ContentStyle;
|
||||
fn content(&self) -> String;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue