pub struct AddressKey {
pub value: Address,
pub original: String,
}
Fields§
§value: Address
§original: String
Implementations§
Source§impl AddressKey
impl AddressKey
pub fn to_address(&self) -> Address
Trait Implementations§
Source§impl Clone for AddressKey
impl Clone for AddressKey
Source§fn clone(&self) -> AddressKey
fn clone(&self) -> AddressKey
Returns a copy 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 AddressKey
impl Debug for AddressKey
Source§impl Default for AddressKey
impl Default for AddressKey
Source§impl Display for AddressKey
impl Display for AddressKey
Source§impl From<&Address> for AddressKey
impl From<&Address> for AddressKey
Source§impl From<&AddressKey> for AddressValue
impl From<&AddressKey> for AddressValue
Source§fn from(from: &AddressKey) -> Self
fn from(from: &AddressKey) -> Self
Converts to this type from the input type.
Source§impl From<&AddressValue> for AddressKey
impl From<&AddressValue> for AddressKey
Source§fn from(from: &AddressValue) -> Self
fn from(from: &AddressValue) -> Self
Converts to this type from the input type.
Source§impl From<&Bech32Address> for AddressKey
impl From<&Bech32Address> for AddressKey
Source§fn from(from: &Bech32Address) -> Self
fn from(from: &Bech32Address) -> Self
Converts to this type from the input type.
Source§impl<P: ProxyObjNew> From<&ContractInfo<P>> for AddressKey
impl<P: ProxyObjNew> From<&ContractInfo<P>> for AddressKey
Source§fn from(from: &ContractInfo<P>) -> Self
fn from(from: &ContractInfo<P>) -> Self
Converts to this type from the input type.
Source§impl From<&str> for AddressKey
impl From<&str> for AddressKey
Source§impl From<AddressKey> for AddressValue
impl From<AddressKey> for AddressValue
Source§fn from(from: AddressKey) -> Self
fn from(from: AddressKey) -> Self
Converts to this type from the input type.
Source§impl From<AddressValue> for AddressKey
impl From<AddressValue> for AddressKey
Source§fn from(from: AddressValue) -> Self
fn from(from: AddressValue) -> Self
Converts to this type from the input type.
Source§impl From<Bech32Address> for AddressKey
impl From<Bech32Address> for AddressKey
Source§fn from(from: Bech32Address) -> Self
fn from(from: Bech32Address) -> Self
Converts to this type from the input type.
Source§impl<P: ProxyObjNew> From<ContractInfo<P>> for AddressKey
impl<P: ProxyObjNew> From<ContractInfo<P>> for AddressKey
Source§fn from(from: ContractInfo<P>) -> Self
fn from(from: ContractInfo<P>) -> Self
Converts to this type from the input type.
Source§impl From<String> for AddressKey
impl From<String> for AddressKey
Source§impl From<TestAddress<'_>> for AddressKey
impl From<TestAddress<'_>> for AddressKey
Source§fn from(from: TestAddress<'_>) -> Self
fn from(from: TestAddress<'_>) -> Self
Converts to this type from the input type.
Source§impl From<TestSCAddress<'_>> for AddressKey
impl From<TestSCAddress<'_>> for AddressKey
Source§fn from(from: TestSCAddress<'_>) -> Self
fn from(from: TestSCAddress<'_>) -> Self
Converts to this type from the input type.
Source§impl InterpretableFrom<&str> for AddressKey
impl InterpretableFrom<&str> for AddressKey
fn interpret_from(from: &str, context: &InterpreterContext) -> Self
Source§impl InterpretableFrom<String> for AddressKey
impl InterpretableFrom<String> for AddressKey
fn interpret_from(from: String, context: &InterpreterContext) -> Self
Source§impl Ord for AddressKey
impl Ord for AddressKey
Source§impl PartialEq for AddressKey
impl PartialEq for AddressKey
Source§impl PartialOrd for AddressKey
impl PartialOrd for AddressKey
impl Eq for AddressKey
Auto Trait Implementations§
impl Freeze for AddressKey
impl RefUnwindSafe for AddressKey
impl Send for AddressKey
impl Sync for AddressKey
impl Unpin for AddressKey
impl UnwindSafe for AddressKey
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.Source§impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
fn interpret_from(from: &T, _context: &InterpreterContext) -> T
Source§impl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more