#[non_exhaustive]pub struct BillingDestination {
pub monitored_resource: String,
pub metrics: Vec<String>,
/* private fields */
}
Expand description
Configuration of a specific billing destination (Currently only support bill against consumer project).
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.monitored_resource: String
The monitored resource type. The type must be defined in Service.monitored_resources section.
metrics: Vec<String>
Names of the metrics to report to this billing destination. Each name must be defined in Service.metrics section.
Implementations§
Source§impl BillingDestination
impl BillingDestination
pub fn new() -> Self
Sourcepub fn set_monitored_resource<T: Into<String>>(self, v: T) -> Self
pub fn set_monitored_resource<T: Into<String>>(self, v: T) -> Self
Sets the value of monitored_resource.
Sourcepub fn set_metrics<T, V>(self, v: T) -> Self
pub fn set_metrics<T, V>(self, v: T) -> Self
Sets the value of metrics.
Trait Implementations§
Source§impl Clone for BillingDestination
impl Clone for BillingDestination
Source§fn clone(&self) -> BillingDestination
fn clone(&self) -> BillingDestination
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 BillingDestination
impl Debug for BillingDestination
Source§impl Default for BillingDestination
impl Default for BillingDestination
Source§fn default() -> BillingDestination
fn default() -> BillingDestination
Returns the “default value” for a type. Read more
Source§impl Message for BillingDestination
impl Message for BillingDestination
Source§impl PartialEq for BillingDestination
impl PartialEq for BillingDestination
impl StructuralPartialEq for BillingDestination
Auto Trait Implementations§
impl Freeze for BillingDestination
impl RefUnwindSafe for BillingDestination
impl Send for BillingDestination
impl Sync for BillingDestination
impl Unpin for BillingDestination
impl UnwindSafe for BillingDestination
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