Struct Bucket (0.5.0)

Bucket is represented as a range, along with replacement values.

Fields

min

Lower bound of the range, inclusive. Type should be the same as max if used.

max

Upper bound of the range, exclusive; type must match min.

replacement_value

Required. Replacement value for this bucket.

Implementations

new

 fn new() -> Self

set_min

 fn set_min<T>(self, v: T) -> Self
where
    T: std::convert::Into<crate::model::Value>,

Sets the value of [min][crate::model::bucketing_config::Bucket::min].

set_or_clear_min

 fn set_or_clear_min<T>(self, v: std::option::Option<T>) -> Self
where
    T: std::convert::Into<crate::model::Value>,

Sets or clears the value of [min][crate::model::bucketing_config::Bucket::min].

set_max

 fn set_max<T>(self, v: T) -> Self
where
    T: std::convert::Into<crate::model::Value>,

Sets the value of [max][crate::model::bucketing_config::Bucket::max].

set_or_clear_max

 fn set_or_clear_max<T>(self, v: std::option::Option<T>) -> Self
where
    T: std::convert::Into<crate::model::Value>,

Sets or clears the value of [max][crate::model::bucketing_config::Bucket::max].

set_replacement_value

 fn set_replacement_value<T>(self, v: T) -> Self
where
    T: std::convert::Into<crate::model::Value>,

Sets the value of [replacement_value][crate::model::bucketing_config::Bucket::replacement_value].

set_or_clear_replacement_value

 fn set_or_clear_replacement_value<T>(self, v: std::option::Option<T>) -> Self
where
    T: std::convert::Into<crate::model::Value>,

Sets or clears the value of [replacement_value][crate::model::bucketing_config::Bucket::replacement_value].