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 PartialOrd for Address
impl PartialOrd for Address
impl 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)