pub struct CallerInfo {
pub tier: String,
pub max_blob: u64,
pub storage_used: u64,
pub storage_limit: u64,
pub blobs: u64,
pub daily_used: u64,
pub daily_limit: u64,
pub allowed: bool,
pub reasons: Vec<String>,
pub plan_title: Option<String>,
pub plan_description: Option<String>,
}Expand description
What this server will do for the account that asked.
Fields§
§tier: String§max_blob: u64§storage_used: u64§storage_limit: u64§blobs: u64§daily_used: u64§daily_limit: u64§allowed: boolWhether an upload would be admitted at all; reasons says why not.
reasons: Vec<String>§plan_title: Option<String>The operator’s name for this tier, bounded by PLAN_TITLE_MAX.
plan_description: Option<String>One line under it, bounded by PLAN_DESCRIPTION_MAX.
Trait Implementations§
Source§impl Clone for CallerInfo
impl Clone for CallerInfo
Source§impl Debug for CallerInfo
impl Debug for CallerInfo
impl Eq for CallerInfo
Source§impl PartialEq for CallerInfo
impl PartialEq for CallerInfo
Source§impl Serialize for CallerInfo
impl Serialize for CallerInfo
impl StructuralPartialEq for CallerInfo
Auto Trait Implementations§
impl Freeze for CallerInfo
impl RefUnwindSafe for CallerInfo
impl Send for CallerInfo
impl Sync for CallerInfo
impl Unpin for CallerInfo
impl UnsafeUnpin for CallerInfo
impl UnwindSafe for CallerInfo
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§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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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