#[non_exhaustive]pub struct GetProjectedCostOptionalParams {
pub view: Option<String>,
pub include_connected_accounts: Option<bool>,
}
Expand description
GetProjectedCostOptionalParams is a struct for passing parameters to the method UsageMeteringAPI::get_projected_cost
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.view: Option<String>
String to specify whether cost is broken down at a parent-org level or at the sub-org level. Available views are summary
and sub-org
. Defaults to summary
.
include_connected_accounts: Option<bool>
Boolean to specify whether to include accounts connected to the current account as partner customers in the Datadog partner network program. Defaults to false
.
Implementations§
Source§impl GetProjectedCostOptionalParams
impl GetProjectedCostOptionalParams
Sourcepub fn view(self, value: String) -> Self
pub fn view(self, value: String) -> Self
String to specify whether cost is broken down at a parent-org level or at the sub-org level. Available views are summary
and sub-org
. Defaults to summary
.
Examples found in repository?
examples/v2_usage-metering_GetProjectedCost.rs (line 11)
7async fn main() {
8 let configuration = datadog::Configuration::new();
9 let api = UsageMeteringAPI::with_config(configuration);
10 let resp = api
11 .get_projected_cost(GetProjectedCostOptionalParams::default().view("sub-org".to_string()))
12 .await;
13 if let Ok(value) = resp {
14 println!("{:#?}", value);
15 } else {
16 println!("{:#?}", resp.unwrap_err());
17 }
18}
Sourcepub fn include_connected_accounts(self, value: bool) -> Self
pub fn include_connected_accounts(self, value: bool) -> Self
Boolean to specify whether to include accounts connected to the current account as partner customers in the Datadog partner network program. Defaults to false
.
Trait Implementations§
Source§impl Clone for GetProjectedCostOptionalParams
impl Clone for GetProjectedCostOptionalParams
Source§fn clone(&self) -> GetProjectedCostOptionalParams
fn clone(&self) -> GetProjectedCostOptionalParams
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for GetProjectedCostOptionalParams
impl Default for GetProjectedCostOptionalParams
Source§fn default() -> GetProjectedCostOptionalParams
fn default() -> GetProjectedCostOptionalParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GetProjectedCostOptionalParams
impl RefUnwindSafe for GetProjectedCostOptionalParams
impl Send for GetProjectedCostOptionalParams
impl Sync for GetProjectedCostOptionalParams
impl Unpin for GetProjectedCostOptionalParams
impl UnwindSafe for GetProjectedCostOptionalParams
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