#[repr(i32)]pub enum CommissionUnlimitedType {
Unknown = -1,
Proportionate = 0,
Full = 1,
Lifetime = 2,
ByAmountPer = 6,
ByRatePer = 7,
}Expand description
Kind of commission coupon (the server’s unlimited code)
The meanings are the ones the Longbridge app gives the codes; the proto names, which read differently, are given in brackets.
Variants§
Unknown = -1
Unknown (an undocumented code)
Proportionate = 0
Time-limited free commission (Proportionate, code 0)
Full = 1
Commission rebate (Full, code 1)
Lifetime = 2
Commission deduction (Lifetime, code 2)
ByAmountPer = 6
Per-use card with a fixed amount per use: amount / usage_count
(ByAmountPer, code 6)
ByRatePer = 7
Per-use discount card, capped at amount_limit per use (ByRatePer,
code 7)
Trait Implementations§
Source§impl Clone for CommissionUnlimitedType
impl Clone for CommissionUnlimitedType
impl Copy for CommissionUnlimitedType
Source§impl Debug for CommissionUnlimitedType
impl Debug for CommissionUnlimitedType
Source§impl Default for CommissionUnlimitedType
impl Default for CommissionUnlimitedType
Source§impl<'de> Deserialize<'de> for CommissionUnlimitedType
impl<'de> Deserialize<'de> for CommissionUnlimitedType
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CommissionUnlimitedType
Source§impl From<CommissionUnlimitedType> for i32
impl From<CommissionUnlimitedType> for i32
Source§fn from(enum_value: CommissionUnlimitedType) -> Self
fn from(enum_value: CommissionUnlimitedType) -> Self
Converts to this type from the input type.
Source§impl From<i32> for CommissionUnlimitedType
impl From<i32> for CommissionUnlimitedType
Source§impl FromPrimitive for CommissionUnlimitedType
impl FromPrimitive for CommissionUnlimitedType
Source§impl Hash for CommissionUnlimitedType
impl Hash for CommissionUnlimitedType
Source§impl PartialEq for CommissionUnlimitedType
impl PartialEq for CommissionUnlimitedType
Source§impl Serialize for CommissionUnlimitedType
impl Serialize for CommissionUnlimitedType
impl StructuralPartialEq for CommissionUnlimitedType
Auto Trait Implementations§
impl Freeze for CommissionUnlimitedType
impl RefUnwindSafe for CommissionUnlimitedType
impl Send for CommissionUnlimitedType
impl Sync for CommissionUnlimitedType
impl Unpin for CommissionUnlimitedType
impl UnsafeUnpin for CommissionUnlimitedType
impl UnwindSafe for CommissionUnlimitedType
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more