[][src]Enum hdpath::Purpose

pub enum Purpose {
    None,
    Pubkey,
    ScriptHash,
    Witness,
    Custom(u32),
}

The purpose number, a first number in HD Path, which is supposed to be reference actual format. Supposed to be a hardened value See BIP-43

Variants

None
Pubkey
ScriptHash
Witness
Custom(u32)

Methods

impl Purpose[src]

pub fn as_value(&self) -> PathValue[src]

Trait Implementations

impl Clone for Purpose[src]

impl Debug for Purpose[src]

impl Eq for Purpose[src]

impl Ord for Purpose[src]

impl PartialEq<Purpose> for Purpose[src]

impl PartialOrd<Purpose> for Purpose[src]

impl StructuralEq for Purpose[src]

impl TryFrom<i32> for Purpose[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<u32> for Purpose[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<usize> for Purpose[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Purpose

impl Send for Purpose

impl Sync for Purpose

impl Unpin for Purpose

impl UnwindSafe for Purpose

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.