#[non_exhaustive]pub struct CostByOrgAttributes {
pub account_name: Option<String>,
pub account_public_id: Option<String>,
pub charges: Option<Vec<ChargebackBreakdown>>,
pub date: Option<DateTime<Utc>>,
pub org_name: Option<String>,
pub public_id: Option<String>,
pub region: Option<String>,
pub total_cost: Option<f64>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Cost 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.account_name: Option<String>
The account name.
account_public_id: Option<String>
The account public ID.
charges: Option<Vec<ChargebackBreakdown>>
List of charges data reported for the requested month.
date: Option<DateTime<Utc>>
The month requested.
org_name: Option<String>
The organization name.
public_id: Option<String>
The organization public ID.
region: Option<String>
The region of the Datadog instance that the organization belongs to.
total_cost: Option<f64>
The total cost of products for the month.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl CostByOrgAttributes
impl CostByOrgAttributes
pub fn new() -> CostByOrgAttributes
pub fn account_name(self, value: String) -> Self
pub fn account_public_id(self, value: String) -> Self
pub fn charges(self, value: Vec<ChargebackBreakdown>) -> Self
pub fn date(self, value: DateTime<Utc>) -> Self
pub fn org_name(self, value: String) -> Self
pub fn public_id(self, value: String) -> Self
pub fn region(self, value: String) -> Self
pub fn total_cost(self, value: f64) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for CostByOrgAttributes
impl Clone for CostByOrgAttributes
Source§fn clone(&self) -> CostByOrgAttributes
fn clone(&self) -> CostByOrgAttributes
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 CostByOrgAttributes
impl Debug for CostByOrgAttributes
Source§impl Default for CostByOrgAttributes
impl Default for CostByOrgAttributes
Source§impl<'de> Deserialize<'de> for CostByOrgAttributes
impl<'de> Deserialize<'de> for CostByOrgAttributes
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 CostByOrgAttributes
impl PartialEq for CostByOrgAttributes
Source§impl Serialize for CostByOrgAttributes
impl Serialize for CostByOrgAttributes
impl StructuralPartialEq for CostByOrgAttributes
Auto Trait Implementations§
impl Freeze for CostByOrgAttributes
impl RefUnwindSafe for CostByOrgAttributes
impl Send for CostByOrgAttributes
impl Sync for CostByOrgAttributes
impl Unpin for CostByOrgAttributes
impl UnwindSafe for CostByOrgAttributes
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