#[non_exhaustive]pub struct ManagedOpenTelemetryConfig {
pub scope: Option<Scope>,
/* private fields */
}Expand description
ManagedOpenTelemetryConfig is the configuration for the GKE Managed OpenTelemetry pipeline.
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.scope: Option<Scope>Scope of the Managed OpenTelemetry pipeline.
Implementations§
Source§impl ManagedOpenTelemetryConfig
impl ManagedOpenTelemetryConfig
pub fn new() -> Self
Sourcepub fn set_or_clear_scope<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_scope<T>(self, v: Option<T>) -> Self
Sets or clears the value of scope.
§Example
ⓘ
use google_cloud_container_v1::model::managed_open_telemetry_config::Scope;
let x0 = ManagedOpenTelemetryConfig::new().set_or_clear_scope(Some(Scope::None));
let x1 = ManagedOpenTelemetryConfig::new().set_or_clear_scope(Some(Scope::CollectionAndInstrumentationComponents));
let x_none = ManagedOpenTelemetryConfig::new().set_or_clear_scope(None::<Scope>);Trait Implementations§
Source§impl Clone for ManagedOpenTelemetryConfig
impl Clone for ManagedOpenTelemetryConfig
Source§fn clone(&self) -> ManagedOpenTelemetryConfig
fn clone(&self) -> ManagedOpenTelemetryConfig
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 ManagedOpenTelemetryConfig
impl Debug for ManagedOpenTelemetryConfig
Source§impl Default for ManagedOpenTelemetryConfig
impl Default for ManagedOpenTelemetryConfig
Source§fn default() -> ManagedOpenTelemetryConfig
fn default() -> ManagedOpenTelemetryConfig
Returns the “default value” for a type. Read more
Source§impl Message for ManagedOpenTelemetryConfig
impl Message for ManagedOpenTelemetryConfig
impl StructuralPartialEq for ManagedOpenTelemetryConfig
Auto Trait Implementations§
impl Freeze for ManagedOpenTelemetryConfig
impl RefUnwindSafe for ManagedOpenTelemetryConfig
impl Send for ManagedOpenTelemetryConfig
impl Sync for ManagedOpenTelemetryConfig
impl Unpin for ManagedOpenTelemetryConfig
impl UnwindSafe for ManagedOpenTelemetryConfig
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