pub struct Spent {
pub requests: u64,
pub budgets: Vec<BudgetSpent>,
}Expand description
What one command spent, summed over the sources in it that meter their own requests.
Source-owned. Every figure is what a source said it sent and spent while the command
ran, read through TaskSource::metering
before the command and again after it. The engine adds the differences up by name and
interprets none of them, which is why the budget and unit names are open vocabulary.
Fields§
§requests: u64How many HTTP requests those sources sent for this command.
budgets: Vec<BudgetSpent>What those requests spent, one entry per budget and unit, ordered by budget name.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Spent
impl<'de> Deserialize<'de> for Spent
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 Spent
Source§impl JsonSchema for Spent
impl JsonSchema for Spent
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 moreimpl StructuralPartialEq for Spent
Auto Trait Implementations§
impl Freeze for Spent
impl RefUnwindSafe for Spent
impl Send for Spent
impl Sync for Spent
impl Unpin for Spent
impl UnsafeUnpin for Spent
impl UnwindSafe for Spent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.