pub enum BarnacleKey {
Email(String),
ApiKey(String),
Ip(String),
Custom(String),
}
Expand description
Identification key for rate limiting (e.g., email, api-key, IP)
Variants§
Trait Implementations§
Source§impl Clone for BarnacleKey
impl Clone for BarnacleKey
Source§fn clone(&self) -> BarnacleKey
fn clone(&self) -> BarnacleKey
Returns a duplicate of the value. Read more
1.0.0 · 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 BarnacleKey
impl Debug for BarnacleKey
Source§impl<'de> Deserialize<'de> for BarnacleKey
impl<'de> Deserialize<'de> for BarnacleKey
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 Hash for BarnacleKey
impl Hash for BarnacleKey
Source§impl PartialEq for BarnacleKey
impl PartialEq for BarnacleKey
Source§impl Serialize for BarnacleKey
impl Serialize for BarnacleKey
impl Eq for BarnacleKey
impl StructuralPartialEq for BarnacleKey
Auto Trait Implementations§
impl Freeze for BarnacleKey
impl RefUnwindSafe for BarnacleKey
impl Send for BarnacleKey
impl Sync for BarnacleKey
impl Unpin for BarnacleKey
impl UnwindSafe for BarnacleKey
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