pub struct ArmStats {
pub outcomes: u64,
pub outcome_sum: f64,
pub requests: u64,
pub cost_usd: f64,
}Expand description
Running totals for one arm. Diagnostics and cost — never part of the guarantee.
Fields§
§outcomes: u64Session outcomes observed.
outcome_sum: f64Sum of outcomes (successes, for binary outcomes).
requests: u64Requests served by this arm.
cost_usd: f64USD spent serving those requests.
Implementations§
Trait Implementations§
impl Copy for ArmStats
Source§impl<'de> Deserialize<'de> for ArmStats
impl<'de> Deserialize<'de> for ArmStats
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
impl StructuralPartialEq for ArmStats
Auto Trait Implementations§
impl Freeze for ArmStats
impl RefUnwindSafe for ArmStats
impl Send for ArmStats
impl Sync for ArmStats
impl Unpin for ArmStats
impl UnsafeUnpin for ArmStats
impl UnwindSafe for ArmStats
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