pub struct VariantResults {
pub routing_rule_id: String,
pub sample_size: i64,
pub success_rate: f64,
pub average_latency_ms: f64,
pub average_cost_micro_usd: f64,
}Expand description
Aggregated metrics for one experiment variant.
Fields§
§routing_rule_id: StringRouting rule id for this variant.
sample_size: i64Number of samples observed.
success_rate: f64Fraction of successful requests.
average_latency_ms: f64Mean latency in milliseconds.
average_cost_micro_usd: f64Mean cost in micro-USD.
Trait Implementations§
Source§impl Clone for VariantResults
impl Clone for VariantResults
Source§fn clone(&self) -> VariantResults
fn clone(&self) -> VariantResults
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VariantResults
impl Debug for VariantResults
Source§impl<'de> Deserialize<'de> for VariantResults
impl<'de> Deserialize<'de> for VariantResults
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 VariantResults
impl RefUnwindSafe for VariantResults
impl Send for VariantResults
impl Sync for VariantResults
impl Unpin for VariantResults
impl UnsafeUnpin for VariantResults
impl UnwindSafe for VariantResults
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