pub struct EpisodeMetadata {
pub strategy_name: Option<String>,
pub scenario_name: Option<String>,
pub created_at: u64,
pub started_at: Option<u64>,
pub ended_at: Option<u64>,
pub tags: HashMap<String, String>,
}Expand description
エピソードのメタデータ
Fields§
§strategy_name: Option<String>Strategy名(どの抽出戦略で生成されたか)
scenario_name: Option<String>シナリオ名
created_at: u64作成日時(Unix timestamp ms)
started_at: Option<u64>開始日時(Unix timestamp ms)
ended_at: Option<u64>終了日時(Unix timestamp ms)
拡張タグ
Implementations§
Source§impl EpisodeMetadata
impl EpisodeMetadata
pub fn new() -> Self
pub fn with_strategy(self, name: impl Into<String>) -> Self
pub fn with_scenario(self, name: impl Into<String>) -> Self
pub fn with_duration(self, start: u64, end: u64) -> Self
pub fn with_tag(self, key: impl Into<String>, value: impl Into<String>) -> Self
Sourcepub fn duration_ms(&self) -> Option<u64>
pub fn duration_ms(&self) -> Option<u64>
実行時間(ミリ秒)
Trait Implementations§
Source§impl Clone for EpisodeMetadata
impl Clone for EpisodeMetadata
Source§fn clone(&self) -> EpisodeMetadata
fn clone(&self) -> EpisodeMetadata
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 EpisodeMetadata
impl Debug for EpisodeMetadata
Source§impl Default for EpisodeMetadata
impl Default for EpisodeMetadata
Source§fn default() -> EpisodeMetadata
fn default() -> EpisodeMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EpisodeMetadata
impl<'de> Deserialize<'de> for EpisodeMetadata
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 EpisodeMetadata
impl RefUnwindSafe for EpisodeMetadata
impl Send for EpisodeMetadata
impl Sync for EpisodeMetadata
impl Unpin for EpisodeMetadata
impl UnwindSafe for EpisodeMetadata
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