Enum docserver::defs::totp_algorithm::TotpAlgorithm
source · pub enum TotpAlgorithm {
Sha1,
Sha256,
Sha512,
}
Variants§
Implementations§
source§impl TotpAlgorithm
impl TotpAlgorithm
pub fn from_str(value: &str) -> TotpAlgorithm
Trait Implementations§
source§impl Clone for TotpAlgorithm
impl Clone for TotpAlgorithm
source§fn clone(&self) -> TotpAlgorithm
fn clone(&self) -> TotpAlgorithm
Returns a copy 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 TotpAlgorithm
impl Debug for TotpAlgorithm
source§impl Default for TotpAlgorithm
impl Default for TotpAlgorithm
source§impl<'de> Deserialize<'de> for TotpAlgorithm
impl<'de> Deserialize<'de> for TotpAlgorithm
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 Display for TotpAlgorithm
impl Display for TotpAlgorithm
source§impl PartialEq<TotpAlgorithm> for TotpAlgorithm
impl PartialEq<TotpAlgorithm> for TotpAlgorithm
source§fn eq(&self, other: &TotpAlgorithm) -> bool
fn eq(&self, other: &TotpAlgorithm) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TotpAlgorithm
impl Serialize for TotpAlgorithm
impl Eq for TotpAlgorithm
impl StructuralEq for TotpAlgorithm
impl StructuralPartialEq for TotpAlgorithm
Auto Trait Implementations§
impl RefUnwindSafe for TotpAlgorithm
impl Send for TotpAlgorithm
impl Sync for TotpAlgorithm
impl Unpin for TotpAlgorithm
impl UnwindSafe for TotpAlgorithm
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more