pub struct UserUsageResponse {
pub billing_cycle: Option<UserBillingCycle>,
pub user: Option<UserOverviewResponse>,
pub projects: HashMap<String, ProjectUsageResponse>,
}Expand description
Response for the /user/me/usage backend endpoint
Fields§
§billing_cycle: Option<UserBillingCycle>Billing cycle for user, will be None if no usage data exists for user.
user: Option<UserOverviewResponse>User overview information including project and domain counts
projects: HashMap<String, ProjectUsageResponse>HashMap of project related metrics for this cycle keyed by project_id. Will be empty if no project usage data exists for user.
Trait Implementations§
Source§impl Clone for UserUsageResponse
impl Clone for UserUsageResponse
Source§fn clone(&self) -> UserUsageResponse
fn clone(&self) -> UserUsageResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 UserUsageResponse
impl Debug for UserUsageResponse
Source§impl Default for UserUsageResponse
impl Default for UserUsageResponse
Source§fn default() -> UserUsageResponse
fn default() -> UserUsageResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserUsageResponse
impl<'de> Deserialize<'de> for UserUsageResponse
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 UserUsageResponse
impl RefUnwindSafe for UserUsageResponse
impl Send for UserUsageResponse
impl Sync for UserUsageResponse
impl Unpin for UserUsageResponse
impl UnwindSafe for UserUsageResponse
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