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