Struct noosphere_core::data::Mnemonic
source · #[repr(transparent)]pub struct Mnemonic(pub String);Expand description
A BIP39-compatible mnemonic phrase that represents the data needed to recover the private half of a cryptographic key pair.
See: https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki
Tuple Fields§
§0: StringTrait Implementations§
source§impl<'de> Deserialize<'de> for Mnemonic
impl<'de> Deserialize<'de> for Mnemonic
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 Ord for Mnemonic
impl Ord for Mnemonic
source§impl PartialEq<Mnemonic> for Mnemonic
impl PartialEq<Mnemonic> for Mnemonic
source§impl PartialOrd<Mnemonic> for Mnemonic
impl PartialOrd<Mnemonic> for Mnemonic
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for Mnemonic
impl StructuralEq for Mnemonic
impl StructuralPartialEq for Mnemonic
Auto Trait Implementations§
impl RefUnwindSafe for Mnemonic
impl Send for Mnemonic
impl Sync for Mnemonic
impl Unpin for Mnemonic
impl UnwindSafe for Mnemonic
Blanket Implementations§
source§impl<T> Base64Encode for Twhere
T: DagJson,
impl<T> Base64Encode for Twhere
T: DagJson,
source§impl<T> DagJson for Twhere
T: Serialize + DeserializeOwned,
impl<T> DagJson for Twhere
T: Serialize + DeserializeOwned,
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.