Struct multiversx_chain_vm::scenario::model::AddressKey
source · 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<P: ProxyObjBase> From<&ContractInfo<P>> for AddressKey
impl<P: ProxyObjBase> 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<P: ProxyObjBase> From<ContractInfo<P>> for AddressKey
impl<P: ProxyObjBase> 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 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<AddressKey> for AddressKey
impl PartialEq<AddressKey> for AddressKey
source§impl PartialOrd<AddressKey> for AddressKey
impl PartialOrd<AddressKey> for AddressKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for AddressKey
impl StructuralEq for AddressKey
Auto Trait Implementations§
impl CodecFromSelf for AddressKey
impl RefUnwindSafe for AddressKey
impl Send for AddressKey
impl Sync for AddressKey
impl Unpin for AddressKey
impl UnwindSafe for AddressKey
Blanket Implementations§
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.