pub struct EfficiencySample {
pub context: OclaRequestContext,
pub original_tokens: u64,
pub delivered_tokens: u64,
pub accepted: Option<bool>,
pub cache_hits: u64,
pub cache_reads: u64,
}Fields§
§context: OclaRequestContext[PII] Request context containing correlation identifiers.
original_tokens: u64[INTERNAL] Original token count.
delivered_tokens: u64[INTERNAL] Delivered token count.
accepted: Option<bool>[INTERNAL] Whether the user accepted the result.
cache_hits: u64[INTERNAL] Cache-hit metric.
cache_reads: u64[INTERNAL] Cache-read metric.
Trait Implementations§
Source§impl Clone for EfficiencySample
impl Clone for EfficiencySample
Source§fn clone(&self) -> EfficiencySample
fn clone(&self) -> EfficiencySample
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 EfficiencySample
impl Debug for EfficiencySample
Source§impl<'de> Deserialize<'de> for EfficiencySample
impl<'de> Deserialize<'de> for EfficiencySample
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 Eq for EfficiencySample
Source§impl PartialEq for EfficiencySample
impl PartialEq for EfficiencySample
Source§impl Serialize for EfficiencySample
impl Serialize for EfficiencySample
impl StructuralPartialEq for EfficiencySample
Auto Trait Implementations§
impl Freeze for EfficiencySample
impl RefUnwindSafe for EfficiencySample
impl Send for EfficiencySample
impl Sync for EfficiencySample
impl Unpin for EfficiencySample
impl UnsafeUnpin for EfficiencySample
impl UnwindSafe for EfficiencySample
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