Struct cml_chain::address::PointerAddress
source · pub struct PointerAddress {
pub network: u8,
pub payment: StakeCredential,
pub stake: Pointer,
/* private fields */
}Fields§
§network: u8§payment: StakeCredential§stake: PointerImplementations§
source§impl PointerAddress
impl PointerAddress
pub fn new(network: u8, payment: StakeCredential, stake: Pointer) -> Self
pub fn to_address(self) -> Address
pub fn from_address(addr: &Address) -> Option<Self>
Trait Implementations§
source§impl Clone for PointerAddress
impl Clone for PointerAddress
source§fn clone(&self) -> PointerAddress
fn clone(&self) -> PointerAddress
Returns a copy 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 PointerAddress
impl Debug for PointerAddress
source§impl From<PointerAddress> for Address
impl From<PointerAddress> for Address
source§fn from(pointer: PointerAddress) -> Self
fn from(pointer: PointerAddress) -> Self
Converts to this type from the input type.
source§impl Hash for PointerAddress
impl Hash for PointerAddress
source§impl Ord for PointerAddress
impl Ord for PointerAddress
source§impl PartialEq for PointerAddress
impl PartialEq for PointerAddress
source§impl PartialOrd for PointerAddress
impl PartialOrd for PointerAddress
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 moresource§impl TryFrom<Address> for PointerAddress
impl TryFrom<Address> for PointerAddress
impl Eq for PointerAddress
Auto Trait Implementations§
impl Freeze for PointerAddress
impl RefUnwindSafe for PointerAddress
impl Send for PointerAddress
impl Sync for PointerAddress
impl Unpin for PointerAddress
impl UnwindSafe for PointerAddress
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> 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