pub struct GetUsageResponse {
pub session: UsageSession,
pub subscription_type: Option<String>,
pub rate_limits_available: bool,
pub rate_limits: Option<UsageRateLimits>,
pub behaviors: UsageBehaviors,
pub extra: Map<String, Value>,
}Expand description
Typed payload returned by the CLI get_usage control request.
Fields§
§session: UsageSession§subscription_type: Option<String>§rate_limits_available: bool§rate_limits: Option<UsageRateLimits>§behaviors: UsageBehaviors§extra: Map<String, Value>Trait Implementations§
Source§impl Clone for GetUsageResponse
impl Clone for GetUsageResponse
Source§fn clone(&self) -> GetUsageResponse
fn clone(&self) -> GetUsageResponse
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 GetUsageResponse
impl Debug for GetUsageResponse
Source§impl<'de> Deserialize<'de> for GetUsageResponse
impl<'de> Deserialize<'de> for GetUsageResponse
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
Auto Trait Implementations§
impl Freeze for GetUsageResponse
impl RefUnwindSafe for GetUsageResponse
impl Send for GetUsageResponse
impl Sync for GetUsageResponse
impl Unpin for GetUsageResponse
impl UnsafeUnpin for GetUsageResponse
impl UnwindSafe for GetUsageResponse
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