pub enum SecretCharset {
Alphanumeric,
Alpha,
Numeric,
Hex,
Base64,
UrlSafe,
}Expand description
Character sets for secret generation
Variants§
Alphanumeric
a-zA-Z0-9 (default)
Alpha
a-zA-Z
Numeric
0-9
Hex
0-9a-f
Base64
a-zA-Z0-9+/
UrlSafe
a-zA-Z0-9-_ (URL safe)
Implementations§
Trait Implementations§
Source§impl Clone for SecretCharset
impl Clone for SecretCharset
Source§fn clone(&self) -> SecretCharset
fn clone(&self) -> SecretCharset
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 SecretCharset
impl Debug for SecretCharset
Source§impl Default for SecretCharset
impl Default for SecretCharset
Source§fn default() -> SecretCharset
fn default() -> SecretCharset
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SecretCharset
impl<'de> Deserialize<'de> for SecretCharset
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 SecretCharset
impl Hash for SecretCharset
Source§impl PartialEq for SecretCharset
impl PartialEq for SecretCharset
Source§impl Serialize for SecretCharset
impl Serialize for SecretCharset
impl Copy for SecretCharset
impl Eq for SecretCharset
impl StructuralPartialEq for SecretCharset
Auto Trait Implementations§
impl Freeze for SecretCharset
impl RefUnwindSafe for SecretCharset
impl Send for SecretCharset
impl Sync for SecretCharset
impl Unpin for SecretCharset
impl UnwindSafe for SecretCharset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.