Struct cardano_serialization_lib::BaseAddress 
source · pub struct BaseAddress { /* private fields */ }Implementations§
source§impl BaseAddress
 
impl BaseAddress
pub fn new(network: u8, payment: &Credential, stake: &Credential) -> Self
pub fn payment_cred(&self) -> Credential
pub fn stake_cred(&self) -> Credential
pub fn to_address(&self) -> Address
pub fn from_address(addr: &Address) -> Option<BaseAddress>
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 Ord for BaseAddress
 
impl Ord for BaseAddress
source§fn cmp(&self, other: &BaseAddress) -> Ordering
 
fn cmp(&self, other: &BaseAddress) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for BaseAddress
 
impl PartialEq for BaseAddress
source§fn eq(&self, other: &BaseAddress) -> bool
 
fn eq(&self, other: &BaseAddress) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl PartialOrd for BaseAddress
 
impl PartialOrd for BaseAddress
source§fn partial_cmp(&self, other: &BaseAddress) -> Option<Ordering>
 
fn partial_cmp(&self, other: &BaseAddress) -> Option<Ordering>
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 BaseAddress
impl StructuralPartialEq 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