pub struct ViaStageTotalsV1 {
pub source_avoidance_tokens: u64,
pub representation_reduction_tokens: u64,
pub upload_reuse_tokens: u64,
pub inference_reduction_tokens: u64,
}Fields§
§source_avoidance_tokens: u64§representation_reduction_tokens: u64§upload_reuse_tokens: u64§inference_reduction_tokens: u64Implementations§
Source§impl ViaStageTotalsV1
impl ViaStageTotalsV1
pub fn from_contexts( contexts: &[ViaContextAttributionV1], ) -> Result<Self, ValidationError>
pub fn total_avoided_tokens(&self) -> Result<u64, ValidationError>
Trait Implementations§
Source§impl Clone for ViaStageTotalsV1
impl Clone for ViaStageTotalsV1
Source§impl Debug for ViaStageTotalsV1
impl Debug for ViaStageTotalsV1
Source§impl<'de> Deserialize<'de> for ViaStageTotalsV1
impl<'de> Deserialize<'de> for ViaStageTotalsV1
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 ViaStageTotalsV1
Source§impl PartialEq for ViaStageTotalsV1
impl PartialEq for ViaStageTotalsV1
Source§impl Serialize for ViaStageTotalsV1
impl Serialize for ViaStageTotalsV1
impl StructuralPartialEq for ViaStageTotalsV1
Auto Trait Implementations§
impl Forget for ViaStageTotalsV1
impl Freeze for ViaStageTotalsV1
impl Move for ViaStageTotalsV1
impl RefUnwindSafe for ViaStageTotalsV1
impl Send for ViaStageTotalsV1
impl Sync for ViaStageTotalsV1
impl Unpin for ViaStageTotalsV1
impl UnsafeUnpin for ViaStageTotalsV1
impl UnwindSafe for ViaStageTotalsV1
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