Struct google_logging2::api::Linear
source · 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§
source§impl<'de> Deserialize<'de> for Linear
impl<'de> Deserialize<'de> for Linear
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
impl Part for Linear
Auto Trait Implementations§
impl RefUnwindSafe for Linear
impl Send for Linear
impl Sync for Linear
impl Unpin for Linear
impl UnwindSafe for Linear
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