Struct multiversx_sc_scenario::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§fn default() -> AddressKey
fn default() -> AddressKey
Returns the “default value” for a type. Read more
source§impl Display for AddressKey
impl Display for AddressKey
source§impl From<&Address> for AddressKey
impl From<&Address> for AddressKey
source§fn from(from: &Address) -> AddressKey
fn from(from: &Address) -> AddressKey
Converts to this type from the input type.
source§impl From<&AddressKey> for AddressValue
impl From<&AddressKey> for AddressValue
source§fn from(from: &AddressKey) -> AddressValue
fn from(from: &AddressKey) -> AddressValue
Converts to this type from the input type.
source§impl From<&AddressValue> for AddressKey
impl From<&AddressValue> for AddressKey
source§fn from(from: &AddressValue) -> AddressKey
fn from(from: &AddressValue) -> AddressKey
Converts to this type from the input type.
source§impl<P> From<&ContractInfo<P>> for AddressKeywhere
P: ProxyObjBase,
impl<P> From<&ContractInfo<P>> for AddressKeywhere P: ProxyObjBase,
source§fn from(from: &ContractInfo<P>) -> AddressKey
fn from(from: &ContractInfo<P>) -> AddressKey
Converts to this type from the input type.
source§impl From<&str> for AddressKey
impl From<&str> for AddressKey
source§fn from(from: &str) -> AddressKey
fn from(from: &str) -> AddressKey
Converts to this type from the input type.
source§impl From<AddressKey> for AddressValue
impl From<AddressKey> for AddressValue
source§fn from(from: AddressKey) -> AddressValue
fn from(from: AddressKey) -> AddressValue
Converts to this type from the input type.
source§impl From<AddressValue> for AddressKey
impl From<AddressValue> for AddressKey
source§fn from(from: AddressValue) -> AddressKey
fn from(from: AddressValue) -> AddressKey
Converts to this type from the input type.
source§impl<P> From<ContractInfo<P>> for AddressKeywhere
P: ProxyObjBase,
impl<P> From<ContractInfo<P>> for AddressKeywhere P: ProxyObjBase,
source§fn from(from: ContractInfo<P>) -> AddressKey
fn from(from: ContractInfo<P>) -> AddressKey
Converts to this type from the input type.
source§impl From<String> for AddressKey
impl From<String> for AddressKey
source§fn from(from: String) -> AddressKey
fn from(from: String) -> AddressKey
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) -> AddressKey
source§impl InterpretableFrom<String> for AddressKey
impl InterpretableFrom<String> for AddressKey
fn interpret_from(from: String, context: &InterpreterContext) -> AddressKey
source§impl Ord for AddressKey
impl Ord for AddressKey
source§fn cmp(&self, other: &AddressKey) -> Ordering
fn cmp(&self, other: &AddressKey) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<AddressKey> for AddressKey
impl PartialEq<AddressKey> for AddressKey
source§fn eq(&self, other: &AddressKey) -> bool
fn eq(&self, other: &AddressKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<AddressKey> for AddressKey
impl PartialOrd<AddressKey> for AddressKey
source§fn partial_cmp(&self, other: &AddressKey) -> Option<Ordering>
fn partial_cmp(&self, other: &AddressKey) -> Option<Ordering>
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.