pub enum NativeCurrencyAddress {
Single(String),
Multiple(Vec<String>),
}Expand description
Native currency address — single address or array of addresses/constant refs.
Per ERC-7730 spec: “Either a string or an array of strings.”
Values may be $.metadata.constants.xxx references resolved at comparison time.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for NativeCurrencyAddress
impl Clone for NativeCurrencyAddress
Source§fn clone(&self) -> NativeCurrencyAddress
fn clone(&self) -> NativeCurrencyAddress
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 NativeCurrencyAddress
impl Debug for NativeCurrencyAddress
Source§impl<'de> Deserialize<'de> for NativeCurrencyAddress
impl<'de> Deserialize<'de> for NativeCurrencyAddress
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 NativeCurrencyAddress
impl RefUnwindSafe for NativeCurrencyAddress
impl Send for NativeCurrencyAddress
impl Sync for NativeCurrencyAddress
impl Unpin for NativeCurrencyAddress
impl UnsafeUnpin for NativeCurrencyAddress
impl UnwindSafe for NativeCurrencyAddress
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