pub enum CallerTier {
Free,
Pro,
Team,
Scale,
}Expand description
Subscription tier for the calling organisation, as surfaced by the cloud tier-resolution layer.
The tier drives cache TTL selection per spec §8.4 (24h / 7d / 30d bands).
The tier field on crate::context::RequestContext and on
tt_auth::ApiKeyContext is Option<CallerTier>: when None, the gateway
falls back to the conservative 24h default. The cloud will inject the real
tier once rv-tier-limits-enforcement is wired; until then all requests
run as if Free.
Variants§
Free
Free tier — 24h cache TTL (spec §8.4).
Pro
Pro tier — 7d cache TTL (spec §8.4).
Team
Team tier — 7d cache TTL (spec §8.4, same band as Pro).
Scale
Scale tier — 30d cache TTL (spec §8.4).
Implementations§
Trait Implementations§
Source§impl Clone for CallerTier
impl Clone for CallerTier
Source§fn clone(&self) -> CallerTier
fn clone(&self) -> CallerTier
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 CallerTier
Source§impl Debug for CallerTier
impl Debug for CallerTier
impl Eq for CallerTier
Source§impl PartialEq for CallerTier
impl PartialEq for CallerTier
Source§fn eq(&self, other: &CallerTier) -> bool
fn eq(&self, other: &CallerTier) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CallerTier
Auto Trait Implementations§
impl Freeze for CallerTier
impl RefUnwindSafe for CallerTier
impl Send for CallerTier
impl Sync for CallerTier
impl Unpin for CallerTier
impl UnsafeUnpin for CallerTier
impl UnwindSafe for CallerTier
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.