#[non_exhaustive]pub struct ResourceUsageExportConfig {
pub bigquery_destination: Option<BigQueryDestination>,
pub enable_network_egress_metering: bool,
pub consumption_metering_config: Option<ConsumptionMeteringConfig>,
/* private fields */
}Expand description
Configuration for exporting cluster resource usages.
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.bigquery_destination: Option<BigQueryDestination>Configuration to use BigQuery as usage export destination.
enable_network_egress_metering: boolWhether to enable network egress metering for this cluster. If enabled, a daemonset will be created in the cluster to meter network egress traffic.
consumption_metering_config: Option<ConsumptionMeteringConfig>Configuration to enable resource consumption metering.
Implementations§
Source§impl ResourceUsageExportConfig
impl ResourceUsageExportConfig
pub fn new() -> Self
Sourcepub fn set_bigquery_destination<T>(self, v: T) -> Selfwhere
T: Into<BigQueryDestination>,
pub fn set_bigquery_destination<T>(self, v: T) -> Selfwhere
T: Into<BigQueryDestination>,
Sets the value of bigquery_destination.
Sourcepub fn set_or_clear_bigquery_destination<T>(self, v: Option<T>) -> Selfwhere
T: Into<BigQueryDestination>,
pub fn set_or_clear_bigquery_destination<T>(self, v: Option<T>) -> Selfwhere
T: Into<BigQueryDestination>,
Sets or clears the value of bigquery_destination.
Sourcepub fn set_enable_network_egress_metering<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_network_egress_metering<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_network_egress_metering.
Sourcepub fn set_consumption_metering_config<T>(self, v: T) -> Selfwhere
T: Into<ConsumptionMeteringConfig>,
pub fn set_consumption_metering_config<T>(self, v: T) -> Selfwhere
T: Into<ConsumptionMeteringConfig>,
Sets the value of consumption_metering_config.
Sourcepub fn set_or_clear_consumption_metering_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ConsumptionMeteringConfig>,
pub fn set_or_clear_consumption_metering_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ConsumptionMeteringConfig>,
Sets or clears the value of consumption_metering_config.
Trait Implementations§
Source§impl Clone for ResourceUsageExportConfig
impl Clone for ResourceUsageExportConfig
Source§fn clone(&self) -> ResourceUsageExportConfig
fn clone(&self) -> ResourceUsageExportConfig
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 ResourceUsageExportConfig
impl Debug for ResourceUsageExportConfig
Source§impl Default for ResourceUsageExportConfig
impl Default for ResourceUsageExportConfig
Source§fn default() -> ResourceUsageExportConfig
fn default() -> ResourceUsageExportConfig
Returns the “default value” for a type. Read more
Source§impl Message for ResourceUsageExportConfig
impl Message for ResourceUsageExportConfig
impl StructuralPartialEq for ResourceUsageExportConfig
Auto Trait Implementations§
impl Freeze for ResourceUsageExportConfig
impl RefUnwindSafe for ResourceUsageExportConfig
impl Send for ResourceUsageExportConfig
impl Sync for ResourceUsageExportConfig
impl Unpin for ResourceUsageExportConfig
impl UnwindSafe for ResourceUsageExportConfig
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