#[non_exhaustive]pub struct ResourceUsageExportConfig {
pub bigquery_destination: Option<BigQueryDestination>,
pub enable_network_egress_metering: bool,
pub consumption_metering_config: Option<ConsumptionMeteringConfig>,
}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
Sourcepub fn set_bigquery_destination<T: Into<Option<BigQueryDestination>>>(
self,
v: T,
) -> Self
pub fn set_bigquery_destination<T: Into<Option<BigQueryDestination>>>( self, v: T, ) -> Self
Sets 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: Into<Option<ConsumptionMeteringConfig>>>(
self,
v: T,
) -> Self
pub fn set_consumption_metering_config<T: Into<Option<ConsumptionMeteringConfig>>>( self, v: T, ) -> Self
Sets 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 copy 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<'de> Deserialize<'de> for ResourceUsageExportConfigwhere
ResourceUsageExportConfig: Default,
impl<'de> Deserialize<'de> for ResourceUsageExportConfigwhere
ResourceUsageExportConfig: Default,
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 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