pub struct SnapshotMetadata {
pub scenario_name: Option<String>,
pub task_description: Option<String>,
pub created_at: u64,
pub session_count: u32,
pub total_episodes: u32,
pub total_actions: u32,
pub phase: Option<LearningPhase>,
pub group_id: Option<SessionGroupId>,
}Expand description
スナップショットのメタデータ
Fields§
§scenario_name: Option<String>シナリオ名
task_description: Option<String>タスクの説明
created_at: u64作成日時(Unix timestamp)
session_count: u32マージされたセッション数
total_episodes: u32総エピソード数
total_actions: u32総アクション数
phase: Option<LearningPhase>学習フェーズ(Bootstrap / Release / Validate)
group_id: Option<SessionGroupId>セッショングループ ID
Implementations§
Source§impl SnapshotMetadata
impl SnapshotMetadata
Sourcepub fn with_scenario(self, name: impl Into<String>) -> SnapshotMetadata
pub fn with_scenario(self, name: impl Into<String>) -> SnapshotMetadata
シナリオ名を設定
Sourcepub fn with_task(self, desc: impl Into<String>) -> SnapshotMetadata
pub fn with_task(self, desc: impl Into<String>) -> SnapshotMetadata
タスク説明を設定
Sourcepub fn with_phase(self, phase: LearningPhase) -> SnapshotMetadata
pub fn with_phase(self, phase: LearningPhase) -> SnapshotMetadata
学習フェーズを設定
Sourcepub fn with_group_id(self, group_id: SessionGroupId) -> SnapshotMetadata
pub fn with_group_id(self, group_id: SessionGroupId) -> SnapshotMetadata
セッショングループ ID を設定
Trait Implementations§
Source§impl Clone for SnapshotMetadata
impl Clone for SnapshotMetadata
Source§fn clone(&self) -> SnapshotMetadata
fn clone(&self) -> SnapshotMetadata
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 SnapshotMetadata
impl Debug for SnapshotMetadata
Source§impl Default for SnapshotMetadata
impl Default for SnapshotMetadata
Source§fn default() -> SnapshotMetadata
fn default() -> SnapshotMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SnapshotMetadata
impl<'de> Deserialize<'de> for SnapshotMetadata
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SnapshotMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SnapshotMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SnapshotMetadata
impl Serialize for SnapshotMetadata
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 SnapshotMetadata
impl RefUnwindSafe for SnapshotMetadata
impl Send for SnapshotMetadata
impl Sync for SnapshotMetadata
impl Unpin for SnapshotMetadata
impl UnwindSafe for SnapshotMetadata
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