pub trait Address: MaybeAddress { }
Expand description
Sealed marker trait for types that represent a valid address.
Those can only be cosmwasm_std::Addr
and cosmwasm_std::CanonicalAddr
and thus are the only types that implement the trait.
If you want to constrain your type to contain addresses
that may have not be validated (i.e &str
and String
),
use MaybeAddress
instead.