pub struct EthereumAddress(/* private fields */);Expand description
Represents an Ethereum address
Implementations§
Trait Implementations§
Source§impl Address for EthereumAddress
impl Address for EthereumAddress
Source§fn from_secret_key(
secret_key: &Self::SecretKey,
_format: &Self::Format,
) -> Result<Self, AddressError>
fn from_secret_key( secret_key: &Self::SecretKey, _format: &Self::Format, ) -> Result<Self, AddressError>
Returns the address corresponding to the given private key.
Source§fn from_public_key(
public_key: &Self::PublicKey,
_: &Self::Format,
) -> Result<Self, AddressError>
fn from_public_key( public_key: &Self::PublicKey, _: &Self::Format, ) -> Result<Self, AddressError>
Returns the address corresponding to the given public key.
type SecretKey = SecretKey
type Format = EthereumFormat
type PublicKey = EthereumPublicKey
fn is_valid(address: &str) -> bool
Source§impl Clone for EthereumAddress
impl Clone for EthereumAddress
Source§fn clone(&self) -> EthereumAddress
fn clone(&self) -> EthereumAddress
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 EthereumAddress
impl Debug for EthereumAddress
Source§impl Default for EthereumAddress
impl Default for EthereumAddress
Source§fn default() -> EthereumAddress
fn default() -> EthereumAddress
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EthereumAddress
impl<'de> Deserialize<'de> for EthereumAddress
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for EthereumAddress
impl Display for EthereumAddress
Source§impl FromStr for EthereumAddress
impl FromStr for EthereumAddress
Source§impl Hash for EthereumAddress
impl Hash for EthereumAddress
Source§impl Ord for EthereumAddress
impl Ord for EthereumAddress
Source§fn cmp(&self, other: &EthereumAddress) -> Ordering
fn cmp(&self, other: &EthereumAddress) -> 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 EthereumAddress
impl PartialEq for EthereumAddress
Source§impl PartialOrd for EthereumAddress
impl PartialOrd for EthereumAddress
Source§impl Serialize for EthereumAddress
impl Serialize for EthereumAddress
Source§impl<'a> TryFrom<&'a str> for EthereumAddress
impl<'a> TryFrom<&'a str> for EthereumAddress
impl Eq for EthereumAddress
impl StructuralPartialEq for EthereumAddress
Auto Trait Implementations§
impl Freeze for EthereumAddress
impl RefUnwindSafe for EthereumAddress
impl Send for EthereumAddress
impl Sync for EthereumAddress
impl Unpin for EthereumAddress
impl UnwindSafe for EthereumAddress
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