pub struct AccountUsage {
pub date: String,
pub api_calls: Option<i32>,
pub email_sends: Option<i32>,
pub notes_count: Option<i32>,
pub sheets_count: Option<i32>,
pub slides_count: Option<i32>,
pub files_count: Option<i32>,
pub tasks_count: Option<i32>,
}Expand description
AccountUsage : Today’s usage counters. Snapshot reflects the in-memory rollup; counts reset at UTC midnight.
Fields§
§date: StringAlways today for the current-day rollup.
api_calls: Option<i32>§email_sends: Option<i32>§notes_count: Option<i32>§sheets_count: Option<i32>§slides_count: Option<i32>§files_count: Option<i32>§tasks_count: Option<i32>Implementations§
Source§impl AccountUsage
impl AccountUsage
Sourcepub fn new(date: String) -> AccountUsage
pub fn new(date: String) -> AccountUsage
Today’s usage counters. Snapshot reflects the in-memory rollup; counts reset at UTC midnight.
Trait Implementations§
Source§impl Clone for AccountUsage
impl Clone for AccountUsage
Source§fn clone(&self) -> AccountUsage
fn clone(&self) -> AccountUsage
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 AccountUsage
impl Debug for AccountUsage
Source§impl Default for AccountUsage
impl Default for AccountUsage
Source§fn default() -> AccountUsage
fn default() -> AccountUsage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AccountUsage
impl<'de> Deserialize<'de> for AccountUsage
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
Source§impl PartialEq for AccountUsage
impl PartialEq for AccountUsage
Source§fn eq(&self, other: &AccountUsage) -> bool
fn eq(&self, other: &AccountUsage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AccountUsage
impl Serialize for AccountUsage
impl StructuralPartialEq for AccountUsage
Auto Trait Implementations§
impl Freeze for AccountUsage
impl RefUnwindSafe for AccountUsage
impl Send for AccountUsage
impl Sync for AccountUsage
impl Unpin for AccountUsage
impl UnsafeUnpin for AccountUsage
impl UnwindSafe for AccountUsage
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