#[repr(u8)]pub enum AddressType {
P2PKH = 0,
P2MPKH = 1,
P2SH = 2,
P2C = 3,
P2PK = 4,
P2HMPK = 5,
}Expand description
Address types in Alephium
Variants§
P2PKH = 0
Pay to Public Key Hash
P2MPKH = 1
Pay to Multi-sig Public Key Hash
P2SH = 2
Pay to Script Hash
P2C = 3
Pay to Contract
P2PK = 4
Pay to Public Key
P2HMPK = 5
Pay to Hashed Multi-sig Public Key
Implementations§
Trait Implementations§
Source§impl Clone for AddressType
impl Clone for AddressType
impl Copy for AddressType
Source§impl Debug for AddressType
impl Debug for AddressType
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
impl Eq for AddressType
Source§impl PartialEq for AddressType
impl PartialEq for AddressType
Source§impl Serialize for AddressType
impl Serialize 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 UnsafeUnpin 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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.