pub struct ServedFrame {
pub frame: FrameId,
pub token_cost: u32,
}Expand description
One served frame’s contribution to a UsageReport: its stable identity
and the token_cost its provider declared for it.
The identity is the auditor’s walk-back handle — from a billed line to the
exact (provider id, frame id, content digest) behind it — and the paired
token_cost is what the request total re-sums from, so the report needs no
out-of-band lookup to be checked.
Fields§
§frame: FrameIdThe frame’s stable identity (docs/context-reuse.md §1).
token_cost: u32The token_cost the provider declared for this frame — the value that
was budget-audited before the frame was accepted.
Trait Implementations§
Source§impl Clone for ServedFrame
impl Clone for ServedFrame
Source§fn clone(&self) -> ServedFrame
fn clone(&self) -> ServedFrame
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 ServedFrame
impl Debug for ServedFrame
Source§impl<'de> Deserialize<'de> for ServedFrame
impl<'de> Deserialize<'de> for ServedFrame
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 ServedFrame
Source§impl PartialEq for ServedFrame
impl PartialEq for ServedFrame
Source§impl Serialize for ServedFrame
impl Serialize for ServedFrame
impl StructuralPartialEq for ServedFrame
Auto Trait Implementations§
impl Freeze for ServedFrame
impl RefUnwindSafe for ServedFrame
impl Send for ServedFrame
impl Sync for ServedFrame
impl Unpin for ServedFrame
impl UnsafeUnpin for ServedFrame
impl UnwindSafe for ServedFrame
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