pub struct Speaker {
pub key: u64,
pub nick: String,
pub color: Option<u32>,
}Expand description
Who said it.
Fields§
§key: u64The application’s identity for this person, or 0 when it has none.
Opaque to the view: it is compared for grouping, handed back in
speaker-menu, and passed to the avatar resolver, and nothing
else. A Hotline client uses its 16-bit user id; an IRC client
might hash the account name. 0 is “unknown” rather than “user
zero”, and a row with an unknown speaker gets no avatar slot,
since there would be nothing to resolve it against.
nick: String§color: Option<u32>A per-person color, 0x00RRGGBB. None means “use the view’s
default nick color”.
Implementations§
Trait Implementations§
impl Eq for Speaker
impl StructuralPartialEq for Speaker
Auto Trait Implementations§
impl Freeze for Speaker
impl RefUnwindSafe for Speaker
impl Send for Speaker
impl Sync for Speaker
impl Unpin for Speaker
impl UnsafeUnpin for Speaker
impl UnwindSafe for Speaker
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