Struct google_servicecontrol1::LinearBuckets [−][src]
pub struct LinearBuckets { pub width: Option<f64>, pub num_finite_buckets: Option<i32>, pub offset: Option<f64>, }
Describing buckets with constant width.
This type is not used in any activity, and only used as part of another schema.
Fields
width: Option<f64>
The i'th linear bucket covers the interval [offset + (i-1) * width, offset + i * width) where i ranges from 1 to num_finite_buckets, inclusive. Must be strictly positive.
num_finite_buckets: Option<i32>
The number of finite buckets. With the underflow and overflow buckets,
the total number of buckets is num_finite_buckets
+ 2.
See comments on bucket_options
for details.
offset: Option<f64>
The i'th linear bucket covers the interval [offset + (i-1) * width, offset + i * width) where i ranges from 1 to num_finite_buckets, inclusive.
Trait Implementations
impl Default for LinearBuckets
[src]
impl Default for LinearBuckets
fn default() -> LinearBuckets
[src]
fn default() -> LinearBuckets
Returns the "default value" for a type. Read more
impl Clone for LinearBuckets
[src]
impl Clone for LinearBuckets
fn clone(&self) -> LinearBuckets
[src]
fn clone(&self) -> LinearBuckets
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for LinearBuckets
[src]
impl Debug for LinearBuckets
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Part for LinearBuckets
[src]
impl Part for LinearBuckets
Auto Trait Implementations
impl Send for LinearBuckets
impl Send for LinearBuckets
impl Sync for LinearBuckets
impl Sync for LinearBuckets