pub struct MnemonicPhrase {
pub phrase: String,
pub language: Language,
}Expand description
Mnemonic phrase for key derivation
Fields§
§phrase: String§language: LanguageImplementations§
Source§impl MnemonicPhrase
impl MnemonicPhrase
Sourcepub fn generate() -> Result<Self, CryptoError>
pub fn generate() -> Result<Self, CryptoError>
Generate a new 24-word mnemonic phrase
Sourcepub fn from_phrase(
phrase: &str,
language: Language,
) -> Result<Self, CryptoError>
pub fn from_phrase( phrase: &str, language: Language, ) -> Result<Self, CryptoError>
Create from existing phrase
Trait Implementations§
Source§impl Clone for MnemonicPhrase
impl Clone for MnemonicPhrase
Source§fn clone(&self) -> MnemonicPhrase
fn clone(&self) -> MnemonicPhrase
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 moreAuto Trait Implementations§
impl Freeze for MnemonicPhrase
impl RefUnwindSafe for MnemonicPhrase
impl Send for MnemonicPhrase
impl Sync for MnemonicPhrase
impl Unpin for MnemonicPhrase
impl UnwindSafe for MnemonicPhrase
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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