pub struct SerializedAddress(/* private fields */);
Implementations§
Source§impl SerializedAddress
impl SerializedAddress
pub fn from_bech32_any_prefix( address: &str, ) -> Option<(String, SerializedAddress)>
pub fn from_bech32(expected_hrp: &str, address: &str) -> Option<Self>
pub fn to_bech32(&self, hrp: &str) -> String
Trait Implementations§
Source§impl Clone for SerializedAddress
impl Clone for SerializedAddress
Source§fn clone(&self) -> SerializedAddress
fn clone(&self) -> SerializedAddress
Returns a duplicate 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 SerializedAddress
impl Debug for SerializedAddress
Source§impl Decode for SerializedAddress
impl Decode for SerializedAddress
Source§impl From<&Address> for SerializedAddress
impl From<&Address> for SerializedAddress
Source§fn from(address: &Address) -> SerializedAddress
fn from(address: &Address) -> SerializedAddress
Converts to this type from the input type.
Source§impl PartialEq for SerializedAddress
impl PartialEq for SerializedAddress
Source§impl TryFrom<SerializedAddress> for Address
impl TryFrom<SerializedAddress> for Address
Source§type Error = AddressError
type Error = AddressError
The type returned in the event of a conversion error.
impl Eq for SerializedAddress
impl StructuralPartialEq for SerializedAddress
Auto Trait Implementations§
impl Freeze for SerializedAddress
impl RefUnwindSafe for SerializedAddress
impl Send for SerializedAddress
impl Sync for SerializedAddress
impl Unpin for SerializedAddress
impl UnwindSafe for SerializedAddress
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