pub struct HashingConfig {
pub pepper: String,
pub entropy_bytes: usize,
}Expand description
API key hashing configuration.
Fields§
§pepper: StringSecret pepper used for HMAC-SHA-256 digest storage.
entropy_bytes: usizeRandom secret entropy in bytes.
Implementations§
Trait Implementations§
Source§impl Clone for HashingConfig
impl Clone for HashingConfig
Source§fn clone(&self) -> HashingConfig
fn clone(&self) -> HashingConfig
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 HashingConfig
impl Debug for HashingConfig
Source§impl<'de> Deserialize<'de> for HashingConfig
impl<'de> Deserialize<'de> for HashingConfig
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
Auto Trait Implementations§
impl Freeze for HashingConfig
impl RefUnwindSafe for HashingConfig
impl Send for HashingConfig
impl Sync for HashingConfig
impl Unpin for HashingConfig
impl UnsafeUnpin for HashingConfig
impl UnwindSafe for HashingConfig
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