pub struct DelegationManagerSCAddress;Expand description
Indicates the delegation manager SC address, which is the same on any MultiversX blockchain.
Implementations§
Source§impl DelegationManagerSCAddress
impl DelegationManagerSCAddress
pub fn to_managed_address<Api>(self) -> ManagedAddress<Api>where
Api: ManagedTypeApi,
pub fn to_address(&self) -> Address
pub fn to_bech32_str(&self) -> &str
pub fn to_bech32_string(&self) -> String
Trait Implementations§
Source§impl<Env> AnnotatedValue<Env, ManagedAddress<<Env as TxEnv>::Api>> for DelegationManagerSCAddresswhere
Env: TxEnv,
impl<Env> AnnotatedValue<Env, ManagedAddress<<Env as TxEnv>::Api>> for DelegationManagerSCAddresswhere
Env: TxEnv,
fn annotation(&self, _env: &Env) -> ManagedBuffer<Env::Api>
Source§fn to_value(&self, _env: &Env) -> ManagedAddress<Env::Api>
fn to_value(&self, _env: &Env) -> ManagedAddress<Env::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) -> T
fn into_value(self, env: &Env) -> T
Consumes annotated value to produce actual value. Read more
Source§impl Display for DelegationManagerSCAddress
impl Display for DelegationManagerSCAddress
Source§impl TopEncode for DelegationManagerSCAddress
impl TopEncode for DelegationManagerSCAddress
Source§fn top_encode_or_handle_err<O, H>(
&self,
output: O,
h: H,
) -> Result<(), H::HandledErr>where
O: TopEncodeOutput,
H: EncodeErrorHandler,
fn top_encode_or_handle_err<O, H>(
&self,
output: O,
h: H,
) -> Result<(), H::HandledErr>where
O: TopEncodeOutput,
H: EncodeErrorHandler,
Version of
top_encode that can handle errors as soon as they occur.
For instance in can exit immediately and make sure that if it returns, it is a success.
By not deferring error handling, this can lead to somewhat smaller bytecode.Source§fn top_encode<O>(&self, output: O) -> Result<(), EncodeError>where
O: TopEncodeOutput,
fn top_encode<O>(&self, output: O) -> Result<(), EncodeError>where
O: TopEncodeOutput,
Attempt to serialize the value to output.
Source§impl<Env> TxToSpecified<Env> for DelegationManagerSCAddresswhere
Env: TxEnv,
impl<Env> TxToSpecified<Env> for DelegationManagerSCAddresswhere
Env: TxEnv,
Source§fn with_address_ref<F, R>(&self, env: &Env, f: F) -> R
fn with_address_ref<F, R>(&self, env: &Env, f: F) -> R
Avoids a clone when performing transfer-execute. Read more
impl<Env> TxTo<Env> for DelegationManagerSCAddresswhere
Env: TxEnv,
impl<M> TypeAbiFrom<DelegationManagerSCAddress> for ManagedAddress<M>where
M: ManagedTypeApi,
Auto Trait Implementations§
impl Freeze for DelegationManagerSCAddress
impl RefUnwindSafe for DelegationManagerSCAddress
impl Send for DelegationManagerSCAddress
impl Sync for DelegationManagerSCAddress
impl Unpin for DelegationManagerSCAddress
impl UnsafeUnpin for DelegationManagerSCAddress
impl UnwindSafe for DelegationManagerSCAddress
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> SCCodec for Twhere
T: TopEncode,
impl<T> SCCodec for Twhere
T: TopEncode,
fn fmt<F>(&self, f: &mut F)where
F: FormatByteReceiver,
Source§impl<T> TopEncodeMulti for Twhere
T: TopEncode,
impl<T> TopEncodeMulti for Twhere
T: TopEncode,
Source§fn multi_encode_or_handle_err<O, H>(
&self,
output: &mut O,
h: H,
) -> Result<(), <H as EncodeErrorHandler>::HandledErr>where
O: TopEncodeMultiOutput,
H: EncodeErrorHandler,
fn multi_encode_or_handle_err<O, H>(
&self,
output: &mut O,
h: H,
) -> Result<(), <H as EncodeErrorHandler>::HandledErr>where
O: TopEncodeMultiOutput,
H: EncodeErrorHandler,
Version of
top_encode that can handle errors as soon as they occur.
For instance in can exit immediately and make sure that if it returns, it is a success.
By not deferring error handling, this can lead to somewhat smaller bytecode.Source§fn multi_encode<O>(&self, output: &mut O) -> Result<(), EncodeError>where
O: TopEncodeMultiOutput,
fn multi_encode<O>(&self, output: &mut O) -> Result<(), EncodeError>where
O: TopEncodeMultiOutput,
Attempt to serialize the value to output.