pub struct SessionGroupMetadata {
pub scenario: String,
pub created_at: u64,
pub completed_at: Option<u64>,
pub target_runs: usize,
pub success_count: usize,
pub failure_count: usize,
pub variant: Option<String>,
}Expand description
セッショングループのメタデータ
Fields§
§scenario: Stringシナリオ名
created_at: u64作成日時(Unix timestamp)
completed_at: Option<u64>完了日時(Unix timestamp)
target_runs: usize目標実行回数
success_count: usize成功回数
failure_count: usize失敗回数
variant: Option<String>使用した variant(with_graph 等)
Implementations§
Source§impl SessionGroupMetadata
impl SessionGroupMetadata
Sourcepub fn with_variant(self, variant: impl Into<String>) -> Self
pub fn with_variant(self, variant: impl Into<String>) -> Self
variant を設定
Sourcepub fn record_success(&mut self)
pub fn record_success(&mut self)
成功を記録
Sourcepub fn record_failure(&mut self)
pub fn record_failure(&mut self)
失敗を記録
Sourcepub fn mark_completed(&mut self)
pub fn mark_completed(&mut self)
完了をマーク
Sourcepub fn success_rate(&self) -> f64
pub fn success_rate(&self) -> f64
成功率を計算
Sourcepub fn completed_runs(&self) -> usize
pub fn completed_runs(&self) -> usize
完了した実行回数
Trait Implementations§
Source§impl Clone for SessionGroupMetadata
impl Clone for SessionGroupMetadata
Source§fn clone(&self) -> SessionGroupMetadata
fn clone(&self) -> SessionGroupMetadata
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 SessionGroupMetadata
impl Debug for SessionGroupMetadata
Source§impl<'de> Deserialize<'de> for SessionGroupMetadata
impl<'de> Deserialize<'de> for SessionGroupMetadata
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 SessionGroupMetadata
impl RefUnwindSafe for SessionGroupMetadata
impl Send for SessionGroupMetadata
impl Sync for SessionGroupMetadata
impl Unpin for SessionGroupMetadata
impl UnwindSafe for SessionGroupMetadata
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