#[non_exhaustive]pub struct Record {
pub timestamp: String,
pub server: String,
pub character: String,
pub zone: String,
pub session_id: String,
pub message_id: u64,
pub event: RecordEvent,
}Expand description
An owned communication record that can cross a thread or UI boundary.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.timestamp: StringRFC 3339 receive timestamp.
server: StringSelected world-server display name.
character: StringLogged-in character name.
zone: StringCurrent short zone name.
session_id: StringProcess-level session identifier.
message_id: u64Monotonic record number within the session.
event: RecordEventDecoded communication or decode failure.
Implementations§
Source§impl Record
impl Record
Sourcepub fn new(
server: impl Into<String>,
character: impl Into<String>,
zone: impl Into<String>,
session_id: impl Into<String>,
message_id: u64,
event: RecordEvent,
) -> Self
pub fn new( server: impl Into<String>, character: impl Into<String>, zone: impl Into<String>, session_id: impl Into<String>, message_id: u64, event: RecordEvent, ) -> Self
Create a communication record with the current UTC receive time.
Sourcepub fn with_timestamp(self, timestamp: impl Into<String>) -> Self
pub fn with_timestamp(self, timestamp: impl Into<String>) -> Self
Replace the receive timestamp, primarily for imported or synthetic records.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Record
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnsafeUnpin for Record
impl UnwindSafe for Record
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