pub struct Address { /* private fields */ }Expand description
Address.
Implementations§
Source§impl Address
impl Address
Sourcepub fn new(format: AddressFormat, address: String) -> Address
pub fn new(format: AddressFormat, address: String) -> Address
Creates a new address.
Sourcepub fn from_public_key_bytes(
format: AddressFormat,
public_key: &[u8],
) -> Address
pub fn from_public_key_bytes( format: AddressFormat, public_key: &[u8], ) -> Address
Formats the public key as an address.
Sourcepub fn format(&self) -> AddressFormat
pub fn format(&self) -> AddressFormat
Returns the format of the address.
Trait Implementations§
impl Eq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<I> IntoResettable<String> for I
impl<I> IntoResettable<String> for I
Source§fn into_resettable(self) -> Resettable<String>
fn into_resettable(self) -> Resettable<String>
Convert to the intended resettable type