pub struct UsageTimeBucket {
pub object: String,
pub start_time: u64,
pub end_time: u64,
pub start_time_iso: Option<String>,
pub end_time_iso: Option<String>,
pub results: Vec<UsageResult>,
}Expand description
A time bucket containing usage results.
Fields§
§object: StringThe object type, which is always bucket.
start_time: u64Start time of the bucket (Unix seconds).
end_time: u64End time of the bucket (Unix seconds).
start_time_iso: Option<String>Start time of the bucket in ISO 8601 format.
end_time_iso: Option<String>End time of the bucket in ISO 8601 format.
results: Vec<UsageResult>Usage results for this time bucket.
Trait Implementations§
Source§impl Clone for UsageTimeBucket
impl Clone for UsageTimeBucket
Source§fn clone(&self) -> UsageTimeBucket
fn clone(&self) -> UsageTimeBucket
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 UsageTimeBucket
impl Debug for UsageTimeBucket
Source§impl<'de> Deserialize<'de> for UsageTimeBucket
impl<'de> Deserialize<'de> for UsageTimeBucket
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 UsageTimeBucket
impl RefUnwindSafe for UsageTimeBucket
impl Send for UsageTimeBucket
impl Sync for UsageTimeBucket
impl Unpin for UsageTimeBucket
impl UnwindSafe for UsageTimeBucket
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