pub struct EpisodeBuilder { /* private fields */ }Expand description
Episode を構築するためのビルダー
Implementations§
Source§impl EpisodeBuilder
impl EpisodeBuilder
Sourcepub fn id(self, id: EpisodeId) -> EpisodeBuilder
pub fn id(self, id: EpisodeId) -> EpisodeBuilder
Episode ID を設定(永続化からの復元用)
Sourcepub fn learn_model(self, name: impl Into<String>) -> EpisodeBuilder
pub fn learn_model(self, name: impl Into<String>) -> EpisodeBuilder
LearnModel 名を設定
Sourcepub fn task_id(self, task_id: TaskId) -> EpisodeBuilder
pub fn task_id(self, task_id: TaskId) -> EpisodeBuilder
Task ID を設定
Sourcepub fn group_id(self, group_id: GroupId) -> EpisodeBuilder
pub fn group_id(self, group_id: GroupId) -> EpisodeBuilder
Group ID を設定
Sourcepub fn record(self, record: impl Into<Record>) -> EpisodeBuilder
pub fn record(self, record: impl Into<Record>) -> EpisodeBuilder
Record を追加(汎用)
Sourcepub fn context(self, context: EpisodeContext) -> EpisodeBuilder
pub fn context(self, context: EpisodeContext) -> EpisodeBuilder
EpisodeContext を設定
pub fn outcome(self, outcome: Outcome) -> EpisodeBuilder
pub fn scenario(self, name: impl Into<String>) -> EpisodeBuilder
pub fn tag( self, key: impl Into<String>, value: impl Into<String>, ) -> EpisodeBuilder
Sourcepub fn metadata(self, metadata: EpisodeMetadata) -> EpisodeBuilder
pub fn metadata(self, metadata: EpisodeMetadata) -> EpisodeBuilder
EpisodeMetadata を設定(永続化からの復元用)
pub fn build(self) -> Episode
Trait Implementations§
Source§impl Debug for EpisodeBuilder
impl Debug for EpisodeBuilder
Source§impl Default for EpisodeBuilder
impl Default for EpisodeBuilder
Source§fn default() -> EpisodeBuilder
fn default() -> EpisodeBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EpisodeBuilder
impl RefUnwindSafe for EpisodeBuilder
impl Send for EpisodeBuilder
impl Sync for EpisodeBuilder
impl Unpin for EpisodeBuilder
impl UnwindSafe for EpisodeBuilder
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> 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