pub enum LighterAccountTier {
Standard,
Premium,
Plus,
Builder,
Unknown(u8),
}Expand description
Lighter account tier, classified from the venue account_type code.
The code 0 is confirmed to be the standard tier. Codes for the higher
tiers are not published in the venue schema, so they are mapped on a
best-effort basis and any unrecognized code is preserved as
Self::Unknown rather than silently misclassified. This type is a
classification of the raw account_type byte, not a wire representation, so
it is not serialized.
Variants§
Implementations§
Source§impl LighterAccountTier
impl LighterAccountTier
Sourcepub const fn documented_rest_quota_per_min(self) -> Option<u32>
pub const fn documented_rest_quota_per_min(self) -> Option<u32>
Returns the documented REST weighted limit (requests per minute) for the
tier, or None when the tier is unrecognized.
This drives log hints only. The adapter never sets the active quota from this value, because the higher limits require registering the caller IP with the venue and so are not guaranteed by the tier alone.
Trait Implementations§
Source§impl Clone for LighterAccountTier
impl Clone for LighterAccountTier
Source§fn clone(&self) -> LighterAccountTier
fn clone(&self) -> LighterAccountTier
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 LighterAccountTier
Source§impl Debug for LighterAccountTier
impl Debug for LighterAccountTier
Source§impl Display for LighterAccountTier
impl Display for LighterAccountTier
impl Eq for LighterAccountTier
Source§impl PartialEq for LighterAccountTier
impl PartialEq for LighterAccountTier
Source§fn eq(&self, other: &LighterAccountTier) -> bool
fn eq(&self, other: &LighterAccountTier) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LighterAccountTier
Auto Trait Implementations§
impl Freeze for LighterAccountTier
impl RefUnwindSafe for LighterAccountTier
impl Send for LighterAccountTier
impl Sync for LighterAccountTier
impl Unpin for LighterAccountTier
impl UnsafeUnpin for LighterAccountTier
impl UnwindSafe for LighterAccountTier
Blanket Implementations§
impl<T> Allocation for T
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<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<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
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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