pub struct ChatLogEntry {
pub channel: ChatChannel,
pub from_entity: EntityId,
pub from_name: String,
pub to_entity: Option<EntityId>,
pub text: String,
pub tick: u64,
pub clarity: ChatClarity,
pub system: bool,
pub rgb: (u8, u8, u8),
}Expand description
One line in the always-visible chat log / active thread.
Fields§
§channel: ChatChannel§from_entity: EntityId§from_name: String§to_entity: Option<EntityId>§text: String§tick: u64§clarity: ChatClarity§system: boolSystem / trade-request lines (not player speech).
rgb: (u8, u8, u8)Stable speaker color for this line (matches world bubble).
Implementations§
Source§impl ChatLogEntry
impl ChatLogEntry
pub fn from_message(msg: ChatMessage, self_id: EntityId) -> Self
pub fn system_line(text: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for ChatLogEntry
impl Clone for ChatLogEntry
Source§fn clone(&self) -> ChatLogEntry
fn clone(&self) -> ChatLogEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChatLogEntry
impl Debug for ChatLogEntry
Source§impl PartialEq for ChatLogEntry
impl PartialEq for ChatLogEntry
impl StructuralPartialEq for ChatLogEntry
Auto Trait Implementations§
impl Freeze for ChatLogEntry
impl RefUnwindSafe for ChatLogEntry
impl Send for ChatLogEntry
impl Sync for ChatLogEntry
impl Unpin for ChatLogEntry
impl UnsafeUnpin for ChatLogEntry
impl UnwindSafe for ChatLogEntry
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