pub struct LimitsView {
pub limits: Option<Box<LimitsBlock>>,
pub plan: Option<String>,
pub unit: Option<String>,
}Fields§
§limits: Option<Box<LimitsBlock>>Limits is the plan’s decision.
plan: Option<String>Plan echoes the plan id the limits were resolved for, after the empty-means- world-free default.
unit: Option<String>Unit names what the two rate numbers are counted in: requests/minute.
Implementations§
Source§impl LimitsView
impl LimitsView
pub fn new() -> LimitsView
Trait Implementations§
Source§impl Clone for LimitsView
impl Clone for LimitsView
Source§fn clone(&self) -> LimitsView
fn clone(&self) -> LimitsView
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 moreSource§impl Debug for LimitsView
impl Debug for LimitsView
Source§impl Default for LimitsView
impl Default for LimitsView
Source§fn default() -> LimitsView
fn default() -> LimitsView
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LimitsView
impl<'de> Deserialize<'de> for LimitsView
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LimitsView
impl PartialEq for LimitsView
Source§impl Serialize for LimitsView
impl Serialize for LimitsView
impl StructuralPartialEq for LimitsView
Auto Trait Implementations§
impl Freeze for LimitsView
impl RefUnwindSafe for LimitsView
impl Send for LimitsView
impl Sync for LimitsView
impl Unpin for LimitsView
impl UnsafeUnpin for LimitsView
impl UnwindSafe for LimitsView
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