pub enum KeychainKind {
External = 0,
Internal = 1,
}
Expand description
Types of keychains
Variants§
External = 0
External keychain, used for deriving recipient addresses.
Internal = 1
Internal keychain, used for deriving change addresses.
Implementations§
Source§impl KeychainKind
impl KeychainKind
Sourcepub fn as_byte(&self) -> u8
pub fn as_byte(&self) -> u8
Return KeychainKind
as a byte
Trait Implementations§
Source§impl AsRef<[u8]> for KeychainKind
impl AsRef<[u8]> for KeychainKind
Source§impl Clone for KeychainKind
impl Clone for KeychainKind
Source§fn clone(&self) -> KeychainKind
fn clone(&self) -> KeychainKind
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 KeychainKind
impl Debug for KeychainKind
Source§impl<'de> Deserialize<'de> for KeychainKind
impl<'de> Deserialize<'de> for KeychainKind
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
Source§impl Hash for KeychainKind
impl Hash for KeychainKind
Source§impl Ord for KeychainKind
impl Ord for KeychainKind
Source§fn cmp(&self, other: &KeychainKind) -> Ordering
fn cmp(&self, other: &KeychainKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for KeychainKind
impl PartialEq for KeychainKind
Source§impl PartialOrd for KeychainKind
impl PartialOrd for KeychainKind
Source§impl Serialize for KeychainKind
impl Serialize for KeychainKind
impl Copy for KeychainKind
impl Eq for KeychainKind
impl StructuralPartialEq for KeychainKind
Auto Trait Implementations§
impl Freeze for KeychainKind
impl RefUnwindSafe for KeychainKind
impl Send for KeychainKind
impl Sync for KeychainKind
impl Unpin for KeychainKind
impl UnwindSafe for KeychainKind
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more