#[non_exhaustive]pub struct AdvancedDatapathObservabilityConfig {
pub enable_metrics: bool,
pub relay_mode: RelayMode,
pub enable_relay: Option<bool>,
}Expand description
AdvancedDatapathObservabilityConfig specifies configuration of observability features of advanced datapath.
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.enable_metrics: boolExpose flow metrics on nodes
relay_mode: RelayModeMethod used to make Relay available
enable_relay: Option<bool>Enable Relay component
Implementations§
Source§impl AdvancedDatapathObservabilityConfig
impl AdvancedDatapathObservabilityConfig
Sourcepub fn set_enable_metrics<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_metrics<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_metrics.
Sourcepub fn set_relay_mode<T: Into<RelayMode>>(self, v: T) -> Self
pub fn set_relay_mode<T: Into<RelayMode>>(self, v: T) -> Self
Sets the value of relay_mode.
Sourcepub fn set_enable_relay<T: Into<Option<bool>>>(self, v: T) -> Self
pub fn set_enable_relay<T: Into<Option<bool>>>(self, v: T) -> Self
Sets the value of enable_relay.
Trait Implementations§
Source§impl Clone for AdvancedDatapathObservabilityConfig
impl Clone for AdvancedDatapathObservabilityConfig
Source§fn clone(&self) -> AdvancedDatapathObservabilityConfig
fn clone(&self) -> AdvancedDatapathObservabilityConfig
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 Default for AdvancedDatapathObservabilityConfig
impl Default for AdvancedDatapathObservabilityConfig
Source§fn default() -> AdvancedDatapathObservabilityConfig
fn default() -> AdvancedDatapathObservabilityConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AdvancedDatapathObservabilityConfig
impl<'de> Deserialize<'de> for AdvancedDatapathObservabilityConfig
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 AdvancedDatapathObservabilityConfig
impl PartialEq for AdvancedDatapathObservabilityConfig
Source§fn eq(&self, other: &AdvancedDatapathObservabilityConfig) -> bool
fn eq(&self, other: &AdvancedDatapathObservabilityConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AdvancedDatapathObservabilityConfig
Auto Trait Implementations§
impl Freeze for AdvancedDatapathObservabilityConfig
impl RefUnwindSafe for AdvancedDatapathObservabilityConfig
impl Send for AdvancedDatapathObservabilityConfig
impl Sync for AdvancedDatapathObservabilityConfig
impl Unpin for AdvancedDatapathObservabilityConfig
impl UnwindSafe for AdvancedDatapathObservabilityConfig
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