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>
Implementations§
Source§impl Address
impl Address
pub fn with_extra_info(&self, network_tag: u8) -> AddressWithExtraInfo<'_>
Trait Implementations§
Source§impl IsPlutusData for Address
impl IsPlutusData for Address
fn to_plutus_data(&self) -> PlutusData
fn from_plutus_data(plutus_data: &PlutusData) -> Result<Self, PlutusDataError>where
Self: Sized,
Source§impl Ord for Address
impl Ord for Address
Source§impl PartialOrd for Address
impl PartialOrd for Address
Source§impl TryFromCSL<Address> for Address
impl TryFromCSL<Address> for Address
fn try_from_csl(value: &Address) -> Result<Self, TryFromCSLError>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)