#[repr(i32)]pub enum AddressType {
Sha3224ChecksumPublic = 0,
BitcoinExternalString = 2,
EthereumCompatAddress = 3,
PublicKeyDirectAddress = 4,
UnknownAddressType = 5,
ScriptHash = 6,
EthereumExternalString = 7,
MoneroExternalString = 8,
SolanaExternalString = 9,
MultisigContract = 10,
}Variants§
Sha3224ChecksumPublic = 0
Original default address type, SHA3-224 checksum of the public key, along with a checksum suffix 28 bytes + 4 byte checksum = 32 bytes for the direct information, proto ser form is used to add version info with another 4 bytes
BitcoinExternalString = 2
Direct Bitcoin address string embedded as UTF bytes
EthereumCompatAddress = 3
This is intended to be used with RSV signature verification.
PublicKeyDirectAddress = 4
Not used anywhere, but could be used for direct public key addresses
UnknownAddressType = 5
Unclear if needed except for debugging
ScriptHash = 6
EthereumExternalString = 7
Direct Ethereum string hash reference with embedded string upper/lower checksum.
MoneroExternalString = 8
SolanaExternalString = 9
MultisigContract = 10
Implementations§
Trait Implementations§
Source§impl Clone for AddressType
impl Clone for AddressType
Source§fn clone(&self) -> AddressType
fn clone(&self) -> AddressType
Returns a duplicate 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 AddressType
impl Debug for AddressType
Source§impl Default for AddressType
impl Default for AddressType
Source§fn default() -> AddressType
fn default() -> AddressType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AddressType
impl<'de> Deserialize<'de> for AddressType
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 From<AddressType> for i32
impl From<AddressType> for i32
Source§fn from(value: AddressType) -> i32
fn from(value: AddressType) -> i32
Converts to this type from the input type.
Source§impl FromStr for AddressType
impl FromStr for AddressType
Source§impl Hash for AddressType
impl Hash for AddressType
Source§impl IntoEnumIterator for AddressType
impl IntoEnumIterator for AddressType
type Iterator = AddressTypeIter
fn iter() -> AddressTypeIter ⓘ
Source§impl Ord for AddressType
impl Ord for AddressType
Source§fn cmp(&self, other: &AddressType) -> Ordering
fn cmp(&self, other: &AddressType) -> 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 AddressType
impl PartialEq for AddressType
Source§impl PartialOrd for AddressType
impl PartialOrd for AddressType
Source§impl Serialize for AddressType
impl Serialize for AddressType
Source§impl TryFrom<&str> for AddressType
impl TryFrom<&str> for AddressType
impl Copy for AddressType
impl Eq for AddressType
impl StructuralPartialEq for AddressType
Auto Trait Implementations§
impl Freeze for AddressType
impl RefUnwindSafe for AddressType
impl Send for AddressType
impl Sync for AddressType
impl Unpin for AddressType
impl UnwindSafe for AddressType
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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