pub struct ScreenChargedUnits {
pub computed: Option<u64>,
pub reported: Option<u64>,
pub charged: u64,
pub basis: ScreenUnitBasis,
pub bound_violation: Option<ScreenUnitBoundViolation>,
}Fields§
§computed: Option<u64>Sum of computed bounds for dispatched attempts. Absent when no attempt was dispatched (including cache hits and withdrawal).
reported: Option<u64>Sum of reported units, when any attempt reported units. Charges for attempts without a report still use their computed bound.
charged: u64§basis: ScreenUnitBasis§bound_violation: Option<ScreenUnitBoundViolation>Present only for a reported charge above its computed bound. Mirrors the cost ledger’s bound-violation observation (3.12.3).
Trait Implementations§
Source§impl Clone for ScreenChargedUnits
impl Clone for ScreenChargedUnits
Source§impl Debug for ScreenChargedUnits
impl Debug for ScreenChargedUnits
Source§impl<'de> Deserialize<'de> for ScreenChargedUnits
impl<'de> Deserialize<'de> for ScreenChargedUnits
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 ScreenChargedUnits
Source§impl JsonSchema for ScreenChargedUnits
impl JsonSchema for ScreenChargedUnits
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ScreenChargedUnits
impl PartialEq for ScreenChargedUnits
Source§impl Serialize for ScreenChargedUnits
impl Serialize for ScreenChargedUnits
impl StructuralPartialEq for ScreenChargedUnits
Auto Trait Implementations§
impl Freeze for ScreenChargedUnits
impl RefUnwindSafe for ScreenChargedUnits
impl Send for ScreenChargedUnits
impl Sync for ScreenChargedUnits
impl Unpin for ScreenChargedUnits
impl UnsafeUnpin for ScreenChargedUnits
impl UnwindSafe for ScreenChargedUnits
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