pub struct BackendUsage {
pub adapter: String,
pub input: u64,
pub output: u64,
pub total: u64,
pub runs: usize,
pub approximate: bool,
}Expand description
What one backend has cost across the runs on record.
Fields§
§adapter: String§input: u64§output: u64§total: u64Counts from vendors that report one combined figure instead of a split.
Kept apart from input and output on purpose. Folding a combined
total into the input side renders as “14.7k in / 0 out”, and that zero
is a claim the vendor never made.
runs: usize§approximate: boolAny part of this total came from a vendor that rounds.
Trait Implementations§
Source§impl Clone for BackendUsage
impl Clone for BackendUsage
Source§fn clone(&self) -> BackendUsage
fn clone(&self) -> BackendUsage
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 BackendUsage
impl Debug for BackendUsage
impl Eq for BackendUsage
Source§impl PartialEq for BackendUsage
impl PartialEq for BackendUsage
impl StructuralPartialEq for BackendUsage
Auto Trait Implementations§
impl Freeze for BackendUsage
impl RefUnwindSafe for BackendUsage
impl Send for BackendUsage
impl Sync for BackendUsage
impl Unpin for BackendUsage
impl UnsafeUnpin for BackendUsage
impl UnwindSafe for BackendUsage
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