Struct google_logging2::api::Linear [−][src]
pub struct Linear {
pub num_finite_buckets: Option<i32>,
pub offset: Option<f64>,
pub width: Option<f64>,
}Expand description
Specifies a linear sequence of buckets that all have the same width (except overflow and underflow). Each bucket represents a constant absolute uncertainty on the specific value in the bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)).
This type is not used in any activity, and only used as part of another schema.
Fields
num_finite_buckets: Option<i32>Must be greater than 0.
offset: Option<f64>Lower bound of the first bucket.
width: Option<f64>Must be greater than 0.
Trait Implementations
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 RefUnwindSafe for Linear
impl UnwindSafe for Linear
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more