pub struct AddressEnriched {
pub chains: HashMap<String, ChainAddressInfo>,
}Expand description
Wrapper around the chain-keyed map. New-typed so callers can hang helper methods on it without orphan-rule issues.
Fields§
§chains: HashMap<String, ChainAddressInfo>Implementations§
Source§impl AddressEnriched
impl AddressEnriched
Sourcepub fn known_chains(&self) -> Vec<&str>
pub fn known_chains(&self) -> Vec<&str>
Chains with non-empty data on this address — i.e. anywhere we found a label, contract flag, or just a record. Useful for ranking which chain to drill into first when an address shows up cross-chain.
Convenience: every tag across every chain, flattened.
Trait Implementations§
Source§impl Clone for AddressEnriched
impl Clone for AddressEnriched
Source§fn clone(&self) -> AddressEnriched
fn clone(&self) -> AddressEnriched
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AddressEnriched
impl Debug for AddressEnriched
Source§impl Default for AddressEnriched
impl Default for AddressEnriched
Source§fn default() -> AddressEnriched
fn default() -> AddressEnriched
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AddressEnriched
impl<'de> Deserialize<'de> for AddressEnriched
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
Auto Trait Implementations§
impl Freeze for AddressEnriched
impl RefUnwindSafe for AddressEnriched
impl Send for AddressEnriched
impl Sync for AddressEnriched
impl Unpin for AddressEnriched
impl UnsafeUnpin for AddressEnriched
impl UnwindSafe for AddressEnriched
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