pub struct AnalyticsSamplingConfig {
pub rate: f64,
pub always_record_users: Vec<String>,
}Expand description
Sampling configuration for high-traffic scenarios.
Fields§
§rate: f64Sampling rate (0.0 - 1.0, where 1.0 = 100%).
always_record_users: Vec<String>Users to always record (not affected by sampling).
Trait Implementations§
Source§impl Clone for AnalyticsSamplingConfig
impl Clone for AnalyticsSamplingConfig
Source§fn clone(&self) -> AnalyticsSamplingConfig
fn clone(&self) -> AnalyticsSamplingConfig
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 AnalyticsSamplingConfig
impl Debug for AnalyticsSamplingConfig
Source§impl Default for AnalyticsSamplingConfig
impl Default for AnalyticsSamplingConfig
Source§impl<'de> Deserialize<'de> for AnalyticsSamplingConfig
impl<'de> Deserialize<'de> for AnalyticsSamplingConfig
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
Auto Trait Implementations§
impl Freeze for AnalyticsSamplingConfig
impl RefUnwindSafe for AnalyticsSamplingConfig
impl Send for AnalyticsSamplingConfig
impl Sync for AnalyticsSamplingConfig
impl Unpin for AnalyticsSamplingConfig
impl UnsafeUnpin for AnalyticsSamplingConfig
impl UnwindSafe for AnalyticsSamplingConfig
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