pub struct UsageSummary {
pub last_24h: Vec<EndpointUsage>,
pub last_minute: u32,
pub per_minute_limit: u32,
pub plan_daily_limit: u32,
pub plan_remaining: u32,
pub path: String,
}Expand description
The usage of the API in the last 24 hours, by this machine.
Fields§
§last_24h: Vec<EndpointUsage>Requests per endpoint in the last 24 hours.
last_minute: u32Requests in the last minute, all endpoints.
per_minute_limit: u32§plan_daily_limit: u32§plan_remaining: u32§path: StringThe counter file.
Trait Implementations§
Source§impl Clone for UsageSummary
impl Clone for UsageSummary
Source§impl Debug for UsageSummary
impl Debug for UsageSummary
Source§impl<'de> Deserialize<'de> for UsageSummary
impl<'de> Deserialize<'de> for UsageSummary
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 UsageSummary
Source§impl JsonSchema for UsageSummary
impl JsonSchema for UsageSummary
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 UsageSummary
impl PartialEq for UsageSummary
Source§impl Serialize for UsageSummary
impl Serialize for UsageSummary
impl StructuralPartialEq for UsageSummary
Auto Trait Implementations§
impl Forget for UsageSummary
impl Freeze for UsageSummary
impl Move for UsageSummary
impl RefUnwindSafe for UsageSummary
impl Send for UsageSummary
impl Sync for UsageSummary
impl Unpin for UsageSummary
impl UnsafeUnpin for UsageSummary
impl UnwindSafe for UsageSummary
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
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§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.