pub struct ScopeId(/* private fields */);Expand description
A stable application-defined scope within a rate-limit policy.
Values contain between 1 and 128 bytes and may use ASCII letters,
digits, -, ., _, :, and /. Identifiers are case-sensitive.
With the serde feature, this type uses a Serde string and applies
the same validation when deserializing.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ScopeId
Available on crate feature serde only.
impl<'de> Deserialize<'de> for ScopeId
Available on crate feature
serde only.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
impl Eq for ScopeId
Source§impl Ord for ScopeId
impl Ord for ScopeId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for ScopeId
impl PartialOrd for ScopeId
impl StructuralPartialEq for ScopeId
Auto Trait Implementations§
impl Freeze for ScopeId
impl RefUnwindSafe for ScopeId
impl Send for ScopeId
impl Sync for ScopeId
impl Unpin for ScopeId
impl UnsafeUnpin for ScopeId
impl UnwindSafe for ScopeId
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