pub struct EthereumAddressBuf(/* private fields */);Expand description
Value for the ethereumAddress property.
An ethereumAddress property is used to specify the Ethereum address (as per
the Ethereum Yellow Paper: ETHEREUM: A SECURE DECENTRALISED GENERALISED
TRANSACTION LEDGER) composed of the prefix “0x”, a common identifier for
hexadecimal, concatenated with the rightmost 20 bytes of the Keccak-256
hash (big endian) of the ECDSA public key (the curve used is the so-called
secp256k1).
In hexadecimal, 2 digits represent a byte, meaning addresses contain 40 hexadecimal digits. The Ethereum address should also contain a checksum as per EIP-55.
Implementations§
Source§impl EthereumAddressBuf
impl EthereumAddressBuf
pub fn as_ethereum_address(&self) -> &EthereumAddress
pub fn into_string(self) -> String
Trait Implementations§
Source§impl Clone for EthereumAddressBuf
impl Clone for EthereumAddressBuf
Source§fn clone(&self) -> EthereumAddressBuf
fn clone(&self) -> EthereumAddressBuf
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 EthereumAddressBuf
impl Debug for EthereumAddressBuf
Source§impl Deref for EthereumAddressBuf
impl Deref for EthereumAddressBuf
Source§impl<'de> Deserialize<'de> for EthereumAddressBuf
impl<'de> Deserialize<'de> for EthereumAddressBuf
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 EthereumAddressBuf
impl Display for EthereumAddressBuf
Source§impl FromStr for EthereumAddressBuf
impl FromStr for EthereumAddressBuf
Source§impl Hash for EthereumAddressBuf
impl Hash for EthereumAddressBuf
Source§impl<V: Vocabulary, I: Interpretation> LinkedDataPredicateObjects<I, V> for EthereumAddressBuf
impl<V: Vocabulary, I: Interpretation> LinkedDataPredicateObjects<I, V> for EthereumAddressBuf
fn visit_objects<S>(&self, visitor: S) -> Result<S::Ok, S::Error>where
S: PredicateObjectsVisitor<I, V>,
Source§impl<V: Vocabulary, I: Interpretation> LinkedDataResource<I, V> for EthereumAddressBuf
impl<V: Vocabulary, I: Interpretation> LinkedDataResource<I, V> for EthereumAddressBuf
fn interpretation( &self, _vocabulary: &mut V, _interpretation: &mut I, ) -> ResourceInterpretation<'_, I, V>
fn lexical_representation<'a>(
&'a self,
vocabulary: &'a mut V,
interpretation: &'a mut I,
) -> Option<CowRdfTerm<'a, V>>where
I: ReverseTermInterpretation<Iri = <V as IriVocabulary>::Iri, BlankId = <V as BlankIdVocabulary>::BlankId, Literal = <V as LiteralVocabulary>::Literal>,
fn reference_interpretation( &self, vocabulary: &mut V, interpretation: &mut I, ) -> ResourceInterpretation<'_, I, V>
Source§impl<V: Vocabulary, I: Interpretation> LinkedDataSubject<I, V> for EthereumAddressBuf
impl<V: Vocabulary, I: Interpretation> LinkedDataSubject<I, V> for EthereumAddressBuf
fn visit_subject<S>(&self, visitor: S) -> Result<S::Ok, S::Error>where
S: SubjectVisitor<I, V>,
Source§impl PartialEq for EthereumAddressBuf
impl PartialEq for EthereumAddressBuf
Source§impl Serialize for EthereumAddressBuf
impl Serialize for EthereumAddressBuf
impl Eq for EthereumAddressBuf
impl StructuralPartialEq for EthereumAddressBuf
Auto Trait Implementations§
impl Freeze for EthereumAddressBuf
impl RefUnwindSafe for EthereumAddressBuf
impl Send for EthereumAddressBuf
impl Sync for EthereumAddressBuf
impl Unpin for EthereumAddressBuf
impl UnwindSafe for EthereumAddressBuf
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.