Struct cardano_legacy_address::ExtendedAddr
source · pub struct ExtendedAddr {
pub addr: [u8; 28],
pub attributes: Attributes,
}
Expand description
A valid cardano address deconstructed
Fields§
§addr: [u8; 28]
§attributes: Attributes
Implementations§
source§impl ExtendedAddr
impl ExtendedAddr
pub fn new(xpub: &XPub, attrs: Attributes) -> Self
pub fn new_simple(xpub: &XPub, network_magic: Option<u32>) -> Self
pub fn to_address(&self) -> Addr
Trait Implementations§
source§impl Clone for ExtendedAddr
impl Clone for ExtendedAddr
source§fn clone(&self) -> ExtendedAddr
fn clone(&self) -> ExtendedAddr
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 ExtendedAddr
impl Debug for ExtendedAddr
source§impl Deserialize for ExtendedAddr
impl Deserialize for ExtendedAddr
source§fn deserialize<R: BufRead>(reader: &mut Deserializer<R>) -> Result<Self>
fn deserialize<R: BufRead>(reader: &mut Deserializer<R>) -> Result<Self>
method to implement to deserialise an object from the given
Deserializer
.source§impl Display for ExtendedAddr
impl Display for ExtendedAddr
source§impl From<ExtendedAddr> for Addr
impl From<ExtendedAddr> for Addr
source§fn from(ea: ExtendedAddr) -> Self
fn from(ea: ExtendedAddr) -> Self
Converts to this type from the input type.
source§impl FromStr for ExtendedAddr
impl FromStr for ExtendedAddr
source§impl PartialEq<ExtendedAddr> for ExtendedAddr
impl PartialEq<ExtendedAddr> for ExtendedAddr
source§fn eq(&self, other: &ExtendedAddr) -> bool
fn eq(&self, other: &ExtendedAddr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ExtendedAddr
impl Serialize for ExtendedAddr
source§impl TryFrom<&[u8]> for ExtendedAddr
impl TryFrom<&[u8]> for ExtendedAddr
impl Eq for ExtendedAddr
impl StructuralEq for ExtendedAddr
impl StructuralPartialEq for ExtendedAddr
Auto Trait Implementations§
impl RefUnwindSafe for ExtendedAddr
impl Send for ExtendedAddr
impl Sync for ExtendedAddr
impl Unpin for ExtendedAddr
impl UnwindSafe for ExtendedAddr
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