Enum kaspa_bip32::WordCount
source · pub enum WordCount {
Words12,
Words24,
}
Expand description
Word count for a BIP39 mnemonic phrase. Identifies mnemonic as 12 or 24 word variants.
Variants§
Trait Implementations§
source§impl BorshDeserialize for WordCount
impl BorshDeserialize for WordCount
source§impl BorshSchema for WordCount
impl BorshSchema for WordCount
source§fn declaration() -> Declaration
fn declaration() -> Declaration
Get the name of the type without brackets.
source§fn add_definitions_recursively(
definitions: &mut HashMap<Declaration, Definition>
)
fn add_definitions_recursively( definitions: &mut HashMap<Declaration, Definition> )
Recursively, using DFS, add type definitions required for this type. For primitive types
this is an empty map. Type definition explains how to serialize/deserialize a type.
source§fn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition>
)
fn add_definition( declaration: String, definition: Definition, definitions: &mut HashMap<String, Definition> )
Helper method to add a single type definition to the map.
fn schema_container() -> BorshSchemaContainer
source§impl BorshSerialize for WordCount
impl BorshSerialize for WordCount
source§impl<'de> Deserialize<'de> for WordCount
impl<'de> Deserialize<'de> for WordCount
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
impl Copy for WordCount
Auto Trait Implementations§
impl RefUnwindSafe for WordCount
impl Send for WordCount
impl Sync for WordCount
impl Unpin for WordCount
impl UnwindSafe for WordCount
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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