pub struct AddressValue {
pub value: Address,
pub original: ValueSubTree,
}
Fields§
§value: Address
§original: ValueSubTree
Implementations§
Source§impl AddressValue
impl AddressValue
pub fn to_address(&self) -> Address
Trait Implementations§
Source§impl<Env> AnnotatedValue<Env, ManagedAddress<<Env as TxEnv>::Api>> for &AddressValuewhere
Env: TxEnv,
impl<Env> AnnotatedValue<Env, ManagedAddress<<Env as TxEnv>::Api>> for &AddressValuewhere
Env: TxEnv,
fn annotation(&self, _env: &Env) -> ManagedBuffer<<Env as TxEnv>::Api>
Source§fn to_value(&self, _env: &Env) -> ManagedAddress<<Env as TxEnv>::Api>
fn to_value(&self, _env: &Env) -> ManagedAddress<<Env as TxEnv>::Api>
Produces the value from a reference of the annotated type. Might involve a
.clone()
in some cases.Source§fn into_value(self, _env: &Env) -> ManagedAddress<<Env as TxEnv>::Api>
fn into_value(self, _env: &Env) -> ManagedAddress<<Env as TxEnv>::Api>
Consumes annotated value to produce actual value. Read more
Source§fn with_value_ref<F, R>(&self, _env: &Env, f: F) -> R
fn with_value_ref<F, R>(&self, _env: &Env, f: F) -> R
Can be used when working with references only. Read more
Source§impl<Env> AnnotatedValue<Env, ManagedAddress<<Env as TxEnv>::Api>> for AddressValuewhere
Env: TxEnv,
impl<Env> AnnotatedValue<Env, ManagedAddress<<Env as TxEnv>::Api>> for AddressValuewhere
Env: TxEnv,
fn annotation(&self, _env: &Env) -> ManagedBuffer<<Env as TxEnv>::Api>
Source§fn to_value(&self, _env: &Env) -> ManagedAddress<<Env as TxEnv>::Api>
fn to_value(&self, _env: &Env) -> ManagedAddress<<Env as TxEnv>::Api>
Produces the value from a reference of the annotated type. Might involve a
.clone()
in some cases.Source§fn into_value(self, _env: &Env) -> ManagedAddress<<Env as TxEnv>::Api>
fn into_value(self, _env: &Env) -> ManagedAddress<<Env as TxEnv>::Api>
Consumes annotated value to produce actual value. Read more
Source§fn with_value_ref<F, R>(&self, _env: &Env, f: F) -> R
fn with_value_ref<F, R>(&self, _env: &Env, f: F) -> R
Can be used when working with references only. Read more
Source§impl Clone for AddressValue
impl Clone for AddressValue
Source§fn clone(&self) -> AddressValue
fn clone(&self) -> AddressValue
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 AddressValue
impl Debug for AddressValue
Source§impl Default for AddressValue
impl Default for AddressValue
Source§fn default() -> AddressValue
fn default() -> AddressValue
Returns the “default value” for a type. Read more
Source§impl Display for AddressValue
impl Display for AddressValue
Source§impl From<&Address> for AddressValue
impl From<&Address> for AddressValue
Source§fn from(from: &Address) -> AddressValue
fn from(from: &Address) -> AddressValue
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 AddressValue
impl From<&AddressValue> for AddressValue
Source§fn from(from: &AddressValue) -> AddressValue
fn from(from: &AddressValue) -> AddressValue
Converts to this type from the input type.
Source§impl<M> From<&AddressValue> for ManagedAddress<M>where
M: ManagedTypeApi,
impl<M> From<&AddressValue> for ManagedAddress<M>where
M: ManagedTypeApi,
Source§fn from(address_value: &AddressValue) -> ManagedAddress<M>
fn from(address_value: &AddressValue) -> ManagedAddress<M>
Converts to this type from the input type.
Source§impl From<&Bech32Address> for AddressValue
impl From<&Bech32Address> for AddressValue
Source§fn from(from: &Bech32Address) -> AddressValue
fn from(from: &Bech32Address) -> AddressValue
Converts to this type from the input type.
Source§impl<P> From<&ContractInfo<P>> for AddressValuewhere
P: ProxyObjNew,
impl<P> From<&ContractInfo<P>> for AddressValuewhere
P: ProxyObjNew,
Source§fn from(from: &ContractInfo<P>) -> AddressValue
fn from(from: &ContractInfo<P>) -> AddressValue
Converts to this type from the input type.
Source§impl From<&str> for AddressValue
impl From<&str> for AddressValue
Source§fn from(from: &str) -> AddressValue
fn from(from: &str) -> AddressValue
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<Bech32Address> for AddressValue
impl From<Bech32Address> for AddressValue
Source§fn from(from: Bech32Address) -> AddressValue
fn from(from: Bech32Address) -> AddressValue
Converts to this type from the input type.
Source§impl<P> From<ContractInfo<P>> for AddressValuewhere
P: ProxyObjNew,
impl<P> From<ContractInfo<P>> for AddressValuewhere
P: ProxyObjNew,
Source§fn from(from: ContractInfo<P>) -> AddressValue
fn from(from: ContractInfo<P>) -> AddressValue
Converts to this type from the input type.
Source§impl From<TestAddress<'_>> for AddressValue
impl From<TestAddress<'_>> for AddressValue
Source§fn from(from: TestAddress<'_>) -> AddressValue
fn from(from: TestAddress<'_>) -> AddressValue
Converts to this type from the input type.
Source§impl From<TestSCAddress<'_>> for AddressValue
impl From<TestSCAddress<'_>> for AddressValue
Source§fn from(from: TestSCAddress<'_>) -> AddressValue
fn from(from: TestSCAddress<'_>) -> AddressValue
Converts to this type from the input type.
Source§impl InterpretableFrom<&str> for AddressValue
impl InterpretableFrom<&str> for AddressValue
fn interpret_from(from: &str, context: &InterpreterContext) -> AddressValue
Source§impl InterpretableFrom<ValueSubTree> for AddressValue
impl InterpretableFrom<ValueSubTree> for AddressValue
fn interpret_from( from: ValueSubTree, context: &InterpreterContext, ) -> AddressValue
Source§impl IntoRaw<ValueSubTree> for AddressValue
impl IntoRaw<ValueSubTree> for AddressValue
fn into_raw(self) -> ValueSubTree
Source§impl PartialEq for AddressValue
impl PartialEq for AddressValue
Source§impl<Env> TxFrom<Env> for &AddressValuewhere
Env: TxEnv,
impl<Env> TxFrom<Env> for &AddressValuewhere
Env: TxEnv,
fn resolve_address(&self, _env: &Env) -> ManagedAddress<<Env as TxEnv>::Api>
Source§impl<Env> TxFrom<Env> for AddressValuewhere
Env: TxEnv,
impl<Env> TxFrom<Env> for AddressValuewhere
Env: TxEnv,
fn resolve_address(&self, _env: &Env) -> ManagedAddress<<Env as TxEnv>::Api>
impl Eq for AddressValue
impl StructuralPartialEq for AddressValue
impl<Env> TxFromSpecified<Env> for &AddressValuewhere
Env: TxEnv,
impl<Env> TxFromSpecified<Env> for AddressValuewhere
Env: TxEnv,
Auto Trait Implementations§
impl Freeze for AddressValue
impl RefUnwindSafe for AddressValue
impl Send for AddressValue
impl Sync for AddressValue
impl Unpin for AddressValue
impl UnwindSafe for AddressValue
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> 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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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