pub struct AnalyticsConfigBuilder { /* private fields */ }Expand description
Builder for AnalyticsConfig
Implementations§
Source§impl AnalyticsConfigBuilder
impl AnalyticsConfigBuilder
pub fn enabled(self, enabled: bool) -> Self
pub fn max_latency_samples(self, max: usize) -> Self
pub fn max_recent_errors(self, max: usize) -> Self
pub fn throughput_window(self, secs: u64) -> Self
pub fn enable_endpoint_metrics(self, enabled: bool) -> Self
pub fn max_endpoints(self, max: usize) -> Self
pub fn enable_rate_limit_tracking(self, enabled: bool) -> Self
pub fn exclude_path(self, path: impl Into<String>) -> Self
pub fn exclude_paths(self, paths: Vec<String>) -> Self
pub fn include_query_params(self, include: bool) -> Self
pub fn sampling_rate(self, rate: f64) -> Self
pub fn track_clients(self, track: bool) -> Self
pub fn max_rate_limit_clients(self, max: usize) -> Self
pub fn build(self) -> AnalyticsConfig
Trait Implementations§
Source§impl Default for AnalyticsConfigBuilder
impl Default for AnalyticsConfigBuilder
Source§fn default() -> AnalyticsConfigBuilder
fn default() -> AnalyticsConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AnalyticsConfigBuilder
impl RefUnwindSafe for AnalyticsConfigBuilder
impl Send for AnalyticsConfigBuilder
impl Sync for AnalyticsConfigBuilder
impl Unpin for AnalyticsConfigBuilder
impl UnwindSafe for AnalyticsConfigBuilder
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