Struct google_logging2_beta1::api::Exponential
source · pub struct Exponential {
pub growth_factor: Option<f64>,
pub num_finite_buckets: Option<i32>,
pub scale: Option<f64>,
}
Expand description
Specifies an exponential sequence of buckets that have a width that is proportional to the value of the lower bound. Each bucket represents a constant relative uncertainty on a 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): scale * (growth_factor ^ i). Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).
This type is not used in any activity, and only used as part of another schema.
Fields§
§growth_factor: Option<f64>
Must be greater than 1.
num_finite_buckets: Option<i32>
Must be greater than 0.
scale: Option<f64>
Must be greater than 0.
Trait Implementations§
source§impl Clone for Exponential
impl Clone for Exponential
source§fn clone(&self) -> Exponential
fn clone(&self) -> Exponential
Returns a copy 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 Exponential
impl Debug for Exponential
source§impl Default for Exponential
impl Default for Exponential
source§fn default() -> Exponential
fn default() -> Exponential
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Exponential
impl<'de> Deserialize<'de> for Exponential
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
source§impl Serialize for Exponential
impl Serialize for Exponential
impl Part for Exponential
Auto Trait Implementations§
impl RefUnwindSafe for Exponential
impl Send for Exponential
impl Sync for Exponential
impl Unpin for Exponential
impl UnwindSafe for Exponential
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