pub struct LearnStatsRecord {
pub timestamp_ms: u64,
pub scenario: String,
pub session_id: String,
pub stats_json: String,
pub outcome: LearnStatsOutcome,
pub total_ticks: u64,
pub total_actions: u64,
}Expand description
LearnStats スナップショット記録
Fields§
§timestamp_ms: u64タイムスタンプ(Unix epoch ms)
scenario: Stringシナリオ名
session_id: Stringセッション ID
stats_json: StringLearnStats データ(JSON シリアライズ)
outcome: LearnStatsOutcomeセッション結果
total_ticks: u64総 Tick 数
total_actions: u64総アクション数
Implementations§
Trait Implementations§
Source§impl Clone for LearnStatsRecord
impl Clone for LearnStatsRecord
Source§fn clone(&self) -> LearnStatsRecord
fn clone(&self) -> LearnStatsRecord
Returns a duplicate of the value. Read more
1.0.0 · 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 LearnStatsRecord
impl Debug for LearnStatsRecord
Source§impl<'de> Deserialize<'de> for LearnStatsRecord
impl<'de> Deserialize<'de> for LearnStatsRecord
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LearnStatsRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LearnStatsRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&LearningEvent> for LearnStatsRecord
impl From<&LearningEvent> for LearnStatsRecord
Source§fn from(event: &LearningEvent) -> LearnStatsRecord
fn from(event: &LearningEvent) -> LearnStatsRecord
Converts to this type from the input type.
Source§impl From<LearnStatsRecord> for Record
impl From<LearnStatsRecord> for Record
Source§fn from(record: LearnStatsRecord) -> Record
fn from(record: LearnStatsRecord) -> Record
Converts to this type from the input type.
Source§impl FromRecord for LearnStatsRecord
impl FromRecord for LearnStatsRecord
fn from_record(record: &Record) -> Option<&LearnStatsRecord>
Source§impl Serialize for LearnStatsRecord
impl Serialize for LearnStatsRecord
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for LearnStatsRecord
impl RefUnwindSafe for LearnStatsRecord
impl Send for LearnStatsRecord
impl Sync for LearnStatsRecord
impl Unpin for LearnStatsRecord
impl UnwindSafe for LearnStatsRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more