pub struct ServiceusagemetricsData {
pub customer_id: Option<Box<String>>,
pub start_time: Option<String>,
pub end_time: Option<String>,
pub usage_type: Option<String>,
pub unit: Option<String>,
pub details: Option<Vec<Serviceusagemetric>>,
pub meta: Option<Box<Metadata>>,
}Fields§
§customer_id: Option<Box<String>>§start_time: Option<String>Date and time (in ISO 8601 format) for initiation point of a billing cycle, signifying the start of charges for a service or subscription.
end_time: Option<String>Date and time (in ISO 8601 format) for termination point of a billing cycle, signifying the end of charges for a service or subscription.
usage_type: Option<String>The usage type identifier for the usage. This is a single, billable metric for the product.
unit: Option<String>The unit for the usage as shown on an invoice. If there is no explicit unit, this field will be "unit" (e.g., a request with product_id of ‘cdn_usage’ and usage_type of ‘North America Requests’ has no unit, and will return "unit").
details: Option<Vec<Serviceusagemetric>>§meta: Option<Box<Metadata>>Implementations§
Source§impl ServiceusagemetricsData
impl ServiceusagemetricsData
pub fn new() -> ServiceusagemetricsData
Trait Implementations§
Source§impl Clone for ServiceusagemetricsData
impl Clone for ServiceusagemetricsData
Source§fn clone(&self) -> ServiceusagemetricsData
fn clone(&self) -> ServiceusagemetricsData
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 ServiceusagemetricsData
impl Debug for ServiceusagemetricsData
Source§impl Default for ServiceusagemetricsData
impl Default for ServiceusagemetricsData
Source§fn default() -> ServiceusagemetricsData
fn default() -> ServiceusagemetricsData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceusagemetricsData
impl<'de> Deserialize<'de> for ServiceusagemetricsData
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 ServiceusagemetricsData
impl PartialEq for ServiceusagemetricsData
Source§impl Serialize for ServiceusagemetricsData
impl Serialize for ServiceusagemetricsData
impl StructuralPartialEq for ServiceusagemetricsData
Auto Trait Implementations§
impl Freeze for ServiceusagemetricsData
impl RefUnwindSafe for ServiceusagemetricsData
impl Send for ServiceusagemetricsData
impl Sync for ServiceusagemetricsData
impl Unpin for ServiceusagemetricsData
impl UnwindSafe for ServiceusagemetricsData
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