Enum mycitadel::model::OriginFormat
source · [−]pub enum OriginFormat {
Master,
SubMaster(ChildNumber),
Standard(Bip43, Option<HardenedIndex>, PublicNetwork),
CustomAccount(DerivationPath),
Custom(DerivationPath),
}Variants
Master
SubMaster(ChildNumber)
Standard(Bip43, Option<HardenedIndex>, PublicNetwork)
CustomAccount(DerivationPath)
Custom(DerivationPath)
Implementations
sourceimpl OriginFormat
impl OriginFormat
pub fn with_account(
path: &DerivationPath,
depth: u8,
network: PublicNetwork
) -> OriginFormat
pub fn account(&self) -> Option<HardenedIndex>
Trait Implementations
sourceimpl Clone for OriginFormat
impl Clone for OriginFormat
sourcefn clone(&self) -> OriginFormat
fn clone(&self) -> OriginFormat
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for OriginFormat
impl Debug for OriginFormat
sourceimpl Display for OriginFormat
impl Display for OriginFormat
sourceimpl Hash for OriginFormat
impl Hash for OriginFormat
sourceimpl Ord for OriginFormat
impl Ord for OriginFormat
sourcefn cmp(&self, other: &OriginFormat) -> Ordering
fn cmp(&self, other: &OriginFormat) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<OriginFormat> for OriginFormat
impl PartialEq<OriginFormat> for OriginFormat
sourcefn eq(&self, other: &OriginFormat) -> bool
fn eq(&self, other: &OriginFormat) -> bool
sourceimpl PartialOrd<OriginFormat> for OriginFormat
impl PartialOrd<OriginFormat> for OriginFormat
sourcefn partial_cmp(&self, other: &OriginFormat) -> Option<Ordering>
fn partial_cmp(&self, other: &OriginFormat) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 OriginFormat
impl StructuralEq for OriginFormat
impl StructuralPartialEq for OriginFormat
Auto Trait Implementations
impl RefUnwindSafe for OriginFormat
impl Send for OriginFormat
impl Sync for OriginFormat
impl Unpin for OriginFormat
impl UnwindSafe for OriginFormat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more