#[repr(i32)]pub enum LadderDistribution {
LADDER_DISTRIBUTION_UNSPECIFIED = 0,
LINEAR = 1,
GEOMETRIC = 2,
WEIGHTED_FAVORABLE = 3,
}Expand description
LadderDistribution defines how quantity is distributed across ladder levels.
Variants§
LADDER_DISTRIBUTION_UNSPECIFIED = 0
Ladder distribution was not provided.
LINEAR = 1
Equal quantity at each level.
GEOMETRIC = 2
More quantity toward the edges (U-shape).
WEIGHTED_FAVORABLE = 3
More quantity at favorable prices.
Implementations§
Source§impl LadderDistribution
impl LadderDistribution
Sourcepub const LadderDistributionUnspecified: Self = Self::LADDER_DISTRIBUTION_UNSPECIFIED
pub const LadderDistributionUnspecified: Self = Self::LADDER_DISTRIBUTION_UNSPECIFIED
Idiomatic alias for Self::LADDER_DISTRIBUTION_UNSPECIFIED; Debug prints the variant name.
Sourcepub const Linear: Self = Self::LINEAR
pub const Linear: Self = Self::LINEAR
Idiomatic alias for Self::LINEAR; Debug prints the variant name.
Sourcepub const Geometric: Self = Self::GEOMETRIC
pub const Geometric: Self = Self::GEOMETRIC
Idiomatic alias for Self::GEOMETRIC; Debug prints the variant name.
Sourcepub const WeightedFavorable: Self = Self::WEIGHTED_FAVORABLE
pub const WeightedFavorable: Self = Self::WEIGHTED_FAVORABLE
Idiomatic alias for Self::WEIGHTED_FAVORABLE; Debug prints the variant name.
Trait Implementations§
Source§impl Clone for LadderDistribution
impl Clone for LadderDistribution
Source§fn clone(&self) -> LadderDistribution
fn clone(&self) -> LadderDistribution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LadderDistribution
Source§impl Debug for LadderDistribution
impl Debug for LadderDistribution
Source§impl Default for LadderDistribution
impl Default for LadderDistribution
Source§impl<'de> Deserialize<'de> for LadderDistribution
impl<'de> Deserialize<'de> for LadderDistribution
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Enumeration for LadderDistribution
impl Enumeration for LadderDistribution
Source§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
The name of this enum variant as it appears in the
.proto file.impl Eq for LadderDistribution
Source§impl Hash for LadderDistribution
impl Hash for LadderDistribution
Source§impl PartialEq for LadderDistribution
impl PartialEq for LadderDistribution
Source§impl ProtoElemJson for LadderDistribution
impl ProtoElemJson for LadderDistribution
Source§fn serialize_proto_json<S: Serializer>(
v: &Self,
s: S,
) -> Result<S::Ok, S::Error>
fn serialize_proto_json<S: Serializer>( v: &Self, s: S, ) -> Result<S::Ok, S::Error>
Serialize this value with proto3 JSON semantics.
Source§fn deserialize_proto_json<'de, D: Deserializer<'de>>(
d: D,
) -> Result<Self, D::Error>
fn deserialize_proto_json<'de, D: Deserializer<'de>>( d: D, ) -> Result<Self, D::Error>
Deserialize a value with proto3 JSON semantics.
Source§impl Serialize for LadderDistribution
impl Serialize for LadderDistribution
impl StructuralPartialEq for LadderDistribution
Auto Trait Implementations§
impl Freeze for LadderDistribution
impl RefUnwindSafe for LadderDistribution
impl Send for LadderDistribution
impl Sync for LadderDistribution
impl Unpin for LadderDistribution
impl UnsafeUnpin for LadderDistribution
impl UnwindSafe for LadderDistribution
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.