#[non_exhaustive]pub struct StackdriverLoggingConfig {
pub sampling_ratio: f64,
/* private fields */
}Expand description
Configuration options for writing logs to Stackdriver Logging.
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.sampling_ratio: f64Specifies the fraction of operations to write to Stackdriver Logging. This field may contain any value between 0.0 and 1.0, inclusive. 0.0 is the default and means that no operations are logged.
Implementations§
Source§impl StackdriverLoggingConfig
impl StackdriverLoggingConfig
pub fn new() -> Self
Sourcepub fn set_sampling_ratio<T: Into<f64>>(self, v: T) -> Self
pub fn set_sampling_ratio<T: Into<f64>>(self, v: T) -> Self
Sets the value of sampling_ratio.
Trait Implementations§
Source§impl Clone for StackdriverLoggingConfig
impl Clone for StackdriverLoggingConfig
Source§fn clone(&self) -> StackdriverLoggingConfig
fn clone(&self) -> StackdriverLoggingConfig
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 StackdriverLoggingConfig
impl Debug for StackdriverLoggingConfig
Source§impl Default for StackdriverLoggingConfig
impl Default for StackdriverLoggingConfig
Source§fn default() -> StackdriverLoggingConfig
fn default() -> StackdriverLoggingConfig
Returns the “default value” for a type. Read more
Source§impl Message for StackdriverLoggingConfig
impl Message for StackdriverLoggingConfig
Source§impl PartialEq for StackdriverLoggingConfig
impl PartialEq for StackdriverLoggingConfig
impl StructuralPartialEq for StackdriverLoggingConfig
Auto Trait Implementations§
impl Freeze for StackdriverLoggingConfig
impl RefUnwindSafe for StackdriverLoggingConfig
impl Send for StackdriverLoggingConfig
impl Sync for StackdriverLoggingConfig
impl Unpin for StackdriverLoggingConfig
impl UnwindSafe for StackdriverLoggingConfig
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