#[non_exhaustive]pub struct UsageAttributesObject {
pub org_name: Option<String>,
pub product_family: Option<String>,
pub public_id: Option<String>,
pub region: Option<String>,
pub timeseries: Option<Vec<UsageTimeSeriesObject>>,
pub usage_type: Option<HourlyUsageType>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Usage attributes data.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.org_name: Option<String>
The organization name.
product_family: Option<String>
The product for which usage is being reported.
public_id: Option<String>
The organization public ID.
region: Option<String>
The region of the Datadog instance that the organization belongs to.
timeseries: Option<Vec<UsageTimeSeriesObject>>
List of usage data reported for each requested hour.
usage_type: Option<HourlyUsageType>
Usage type that is being measured.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl UsageAttributesObject
impl UsageAttributesObject
pub fn new() -> UsageAttributesObject
pub fn org_name(self, value: String) -> Self
pub fn product_family(self, value: String) -> Self
pub fn public_id(self, value: String) -> Self
pub fn region(self, value: String) -> Self
pub fn timeseries(self, value: Vec<UsageTimeSeriesObject>) -> Self
pub fn usage_type(self, value: HourlyUsageType) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for UsageAttributesObject
impl Clone for UsageAttributesObject
Source§fn clone(&self) -> UsageAttributesObject
fn clone(&self) -> UsageAttributesObject
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 UsageAttributesObject
impl Debug for UsageAttributesObject
Source§impl Default for UsageAttributesObject
impl Default for UsageAttributesObject
Source§impl<'de> Deserialize<'de> for UsageAttributesObject
impl<'de> Deserialize<'de> for UsageAttributesObject
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 UsageAttributesObject
impl PartialEq for UsageAttributesObject
Source§impl Serialize for UsageAttributesObject
impl Serialize for UsageAttributesObject
impl StructuralPartialEq for UsageAttributesObject
Auto Trait Implementations§
impl Freeze for UsageAttributesObject
impl RefUnwindSafe for UsageAttributesObject
impl Send for UsageAttributesObject
impl Sync for UsageAttributesObject
impl Unpin for UsageAttributesObject
impl UnwindSafe for UsageAttributesObject
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