Struct plutus_ledger_api::v1::address::Address
source · pub struct Address {
pub credential: Credential,
pub staking_credential: Option<StakingCredential>,
}
Expand description
Shelley Address for wallets or validators
An address consists of a payment part (credential) and a delegation part (staking_credential).
In order to serialize an address to bech32
, the network kind must be known.
For a better understanding of all the Cardano address types, read CIP 19
Fields§
§credential: Credential
§staking_credential: Option<StakingCredential>
Trait Implementations§
source§impl IsPlutusData for Address
impl IsPlutusData for Address
fn to_plutus_data(&self) -> PlutusData
fn from_plutus_data(data: &PlutusData) -> Result<Self, PlutusDataError>
source§impl Ord for Address
impl Ord for Address
source§impl PartialEq for Address
impl PartialEq for Address
source§impl PartialOrd for Address
impl PartialOrd for Address
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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