Enum ethers_iqkms::types::NameOrAddress
source · [−]Expand description
ENS name or Ethereum Address. Not RLP encoded/serialized if it’s a name.
Variants
Name(String)
An ENS Name (format does not get checked)
Address(H160)
An Ethereum Address
Implementations
sourceimpl NameOrAddress
impl NameOrAddress
Trait Implementations
sourceimpl Clone for NameOrAddress
impl Clone for NameOrAddress
sourcefn clone(&self) -> NameOrAddress
fn clone(&self) -> NameOrAddress
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for NameOrAddress
impl Debug for NameOrAddress
sourceimpl Decodable for NameOrAddress
impl Decodable for NameOrAddress
sourcefn decode(rlp: &Rlp<'_>) -> Result<NameOrAddress, DecoderError>
fn decode(rlp: &Rlp<'_>) -> Result<NameOrAddress, DecoderError>
Decode a value from RLP bytes
sourceimpl<'de> Deserialize<'de> for NameOrAddress
impl<'de> Deserialize<'de> for NameOrAddress
sourcefn deserialize<D>(
deserializer: D
) -> Result<NameOrAddress, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<NameOrAddress, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Encodable for &NameOrAddress
impl Encodable for &NameOrAddress
sourcefn rlp_append(&self, s: &mut RlpStream)
fn rlp_append(&self, s: &mut RlpStream)
Append a value to the stream
fn rlp_bytes(&self) -> BytesMut
fn rlp_bytes(&self) -> BytesMut
Get rlp-encoded bytes for this instance
sourceimpl Encodable for NameOrAddress
impl Encodable for NameOrAddress
sourcefn rlp_append(&self, s: &mut RlpStream)
fn rlp_append(&self, s: &mut RlpStream)
Append a value to the stream
fn rlp_bytes(&self) -> BytesMut
fn rlp_bytes(&self) -> BytesMut
Get rlp-encoded bytes for this instance
sourceimpl From<&String> for NameOrAddress
impl From<&String> for NameOrAddress
sourcefn from(s: &String) -> NameOrAddress
fn from(s: &String) -> NameOrAddress
Converts to this type from the input type.
sourceimpl From<&str> for NameOrAddress
impl From<&str> for NameOrAddress
sourcefn from(s: &str) -> NameOrAddress
fn from(s: &str) -> NameOrAddress
Converts to this type from the input type.
sourceimpl From<H160> for NameOrAddress
impl From<H160> for NameOrAddress
sourcefn from(s: H160) -> NameOrAddress
fn from(s: H160) -> NameOrAddress
Converts to this type from the input type.
sourceimpl From<String> for NameOrAddress
impl From<String> for NameOrAddress
sourcefn from(s: String) -> NameOrAddress
fn from(s: String) -> NameOrAddress
Converts to this type from the input type.
sourceimpl FromStr for NameOrAddress
impl FromStr for NameOrAddress
type Err = Infallible
type Err = Infallible
The associated error which can be returned from parsing.
sourcefn from_str(s: &str) -> Result<NameOrAddress, <NameOrAddress as FromStr>::Err>
fn from_str(s: &str) -> Result<NameOrAddress, <NameOrAddress as FromStr>::Err>
Parses a string
s to return a value of this type. Read moresourceimpl PartialEq<NameOrAddress> for NameOrAddress
impl PartialEq<NameOrAddress> for NameOrAddress
sourcefn eq(&self, other: &NameOrAddress) -> bool
fn eq(&self, other: &NameOrAddress) -> bool
sourceimpl Serialize for NameOrAddress
impl Serialize for NameOrAddress
sourcefn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for NameOrAddress
impl StructuralEq for NameOrAddress
impl StructuralPartialEq for NameOrAddress
Auto Trait Implementations
impl RefUnwindSafe for NameOrAddress
impl Send for NameOrAddress
impl Sync for NameOrAddress
impl Unpin for NameOrAddress
impl UnwindSafe for NameOrAddress
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request