pub struct Bip39Mnemonic { /* private fields */ }
Implementations§
Source§impl Bip39Mnemonic
impl Bip39Mnemonic
pub fn new( mnemonic: impl AsRef<str>, language: Option<MnemonicLanguage>, ) -> Self
pub fn set_fingerprint(&mut self, fingerprint: SeedFingerprint)
pub fn mnemonic(&self) -> &String
pub fn set_mnemonic(&mut self, mnemonic: String)
pub fn language(&self) -> Option<&MnemonicLanguage>
pub fn fingerprint(&self) -> Option<&SeedFingerprint>
pub fn set_language(&mut self, language: MnemonicLanguage)
Trait Implementations§
Source§impl Clone for Bip39Mnemonic
impl Clone for Bip39Mnemonic
Source§fn clone(&self) -> Bip39Mnemonic
fn clone(&self) -> Bip39Mnemonic
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 Bip39Mnemonic
impl Debug for Bip39Mnemonic
Source§impl From<Bip39Mnemonic> for Envelope
impl From<Bip39Mnemonic> for Envelope
Source§fn from(value: Bip39Mnemonic) -> Self
fn from(value: Bip39Mnemonic) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Bip39Mnemonic
impl PartialEq for Bip39Mnemonic
Source§impl TryFrom<Envelope> for Bip39Mnemonic
impl TryFrom<Envelope> for Bip39Mnemonic
impl StructuralPartialEq for Bip39Mnemonic
Auto Trait Implementations§
impl Freeze for Bip39Mnemonic
impl RefUnwindSafe for Bip39Mnemonic
impl Send for Bip39Mnemonic
impl Sync for Bip39Mnemonic
impl Unpin for Bip39Mnemonic
impl UnwindSafe for Bip39Mnemonic
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<T> EnvelopeEncodable for T
impl<T> EnvelopeEncodable for T
Source§fn into_envelope(self) -> Envelope
fn into_envelope(self) -> Envelope
Converts the value into an envelope by using its Into<Envelope>
implementation.
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more