pub struct GameLogEntryDto {
pub entry_type: GameLogEntryTypeDto,
pub message: String,
pub timestamp_ms: u64,
pub player_id: Option<String>,
pub card_id: Option<String>,
pub source_card_id: Option<String>,
pub target_card_id: Option<String>,
}Expand description
Structured log entry sent from the engine thread to the frontend.
Fields§
§entry_type: GameLogEntryTypeDto§message: String§timestamp_ms: u64§player_id: Option<String>§card_id: Option<String>§source_card_id: Option<String>§target_card_id: Option<String>Implementations§
Source§impl GameLogEntryDto
impl GameLogEntryDto
pub fn from_message(message: &str) -> Self
pub fn from_event(event: GameLogEvent) -> Self
Trait Implementations§
Source§impl Clone for GameLogEntryDto
impl Clone for GameLogEntryDto
Source§fn clone(&self) -> GameLogEntryDto
fn clone(&self) -> GameLogEntryDto
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 GameLogEntryDto
impl Debug for GameLogEntryDto
Source§impl<'de> Deserialize<'de> for GameLogEntryDto
impl<'de> Deserialize<'de> for GameLogEntryDto
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GameLogEntryDto
impl RefUnwindSafe for GameLogEntryDto
impl Send for GameLogEntryDto
impl Sync for GameLogEntryDto
impl Unpin for GameLogEntryDto
impl UnsafeUnpin for GameLogEntryDto
impl UnwindSafe for GameLogEntryDto
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.