pub struct RateLimitIdentity(pub String);Expand description
Authenticated principal for rate-limit identity keys. Set by auth / passport when a user is hydrated; rate-limit falls back to IP if absent.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Clone for RateLimitIdentity
impl Clone for RateLimitIdentity
Source§fn clone(&self) -> RateLimitIdentity
fn clone(&self) -> RateLimitIdentity
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 moreAuto Trait Implementations§
impl Freeze for RateLimitIdentity
impl RefUnwindSafe for RateLimitIdentity
impl Send for RateLimitIdentity
impl Sync for RateLimitIdentity
impl Unpin for RateLimitIdentity
impl UnsafeUnpin for RateLimitIdentity
impl UnwindSafe for RateLimitIdentity
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