Enum ethers::types::RecoveryMessage
source · pub enum RecoveryMessage {
Data(Vec<u8, Global>),
Hash(H256),
}Expand description
Recovery message data.
The message data can either be a binary message that is first hashed according to EIP-191 and then recovered based on the signature or a precomputed hash.
Variants§
Trait Implementations§
source§impl Clone for RecoveryMessage
impl Clone for RecoveryMessage
source§fn clone(&self) -> RecoveryMessage
fn clone(&self) -> RecoveryMessage
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 RecoveryMessage
impl Debug for RecoveryMessage
source§impl From<&[u8]> for RecoveryMessage
impl From<&[u8]> for RecoveryMessage
source§fn from(s: &[u8]) -> RecoveryMessage
fn from(s: &[u8]) -> RecoveryMessage
Converts to this type from the input type.
source§impl From<&str> for RecoveryMessage
impl From<&str> for RecoveryMessage
source§fn from(s: &str) -> RecoveryMessage
fn from(s: &str) -> RecoveryMessage
Converts to this type from the input type.
source§impl From<H256> for RecoveryMessage
impl From<H256> for RecoveryMessage
source§fn from(hash: H256) -> RecoveryMessage
fn from(hash: H256) -> RecoveryMessage
Converts to this type from the input type.
source§impl From<String> for RecoveryMessage
impl From<String> for RecoveryMessage
source§fn from(s: String) -> RecoveryMessage
fn from(s: String) -> RecoveryMessage
Converts to this type from the input type.
source§impl PartialEq<RecoveryMessage> for RecoveryMessage
impl PartialEq<RecoveryMessage> for RecoveryMessage
source§fn eq(&self, other: &RecoveryMessage) -> bool
fn eq(&self, other: &RecoveryMessage) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for RecoveryMessage
impl StructuralEq for RecoveryMessage
impl StructuralPartialEq for RecoveryMessage
Auto Trait Implementations§
impl RefUnwindSafe for RecoveryMessage
impl Send for RecoveryMessage
impl Sync for RecoveryMessage
impl Unpin for RecoveryMessage
impl UnwindSafe for RecoveryMessage
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.