pub struct TokenManager;Implementations§
Source§impl TokenManager
impl TokenManager
pub const fn spec_xdr_owner() -> [u8; 32]
Source§impl TokenManager
impl TokenManager
pub const fn spec_xdr_transfer_ownership() -> [u8; 64]
Source§impl TokenManager
impl TokenManager
pub const fn spec_xdr_version() -> [u8; 32]
Source§impl TokenManager
impl TokenManager
pub const fn spec_xdr_required_auths() -> [u8; 44]
Source§impl TokenManager
impl TokenManager
pub const fn spec_xdr_upgrade() -> [u8; 60]
Source§impl TokenManager
impl TokenManager
pub const fn spec_xdr_migrate() -> [u8; 120]
Source§impl TokenManager
impl TokenManager
pub fn __constructor(env: &Env, owner: Address)
Source§impl TokenManager
impl TokenManager
pub const fn spec_xdr___constructor() -> [u8; 56]
Source§impl TokenManager
impl TokenManager
pub const fn spec_xdr_execute() -> [u8; 116]
Trait Implementations§
Source§impl CustomMigratableInterface for TokenManager
impl CustomMigratableInterface for TokenManager
Source§type MigrationData = ()
type MigrationData = ()
Data needed during the migration. Each contract can define its own data type.
Choose
() if none is necessarySource§type Error = ContractError
type Error = ContractError
Error type returned if the migration fails.
It must implement the
Into<ContractError> trait if migration is implemented with the #[derive(Upgradable)] macro.Source§impl MigratableInterface for TokenManager
impl MigratableInterface for TokenManager
Source§type Error = ContractError
type Error = ContractError
Error type returned if the migration fails.
Source§fn migrate(
env: &Env,
migration_data: <TokenManager as CustomMigratableInterface>::MigrationData,
) -> Result<(), ContractError>
fn migrate( env: &Env, migration_data: <TokenManager as CustomMigratableInterface>::MigrationData, ) -> Result<(), ContractError>
Migrates contract state after upgrading the contract code.
Source§impl OwnableInterface for TokenManager
impl OwnableInterface for TokenManager
Source§impl TokenManagerInterface for TokenManager
impl TokenManagerInterface for TokenManager
Source§impl UpgradableInterface for TokenManager
impl UpgradableInterface for TokenManager
Auto Trait Implementations§
impl Freeze for TokenManager
impl RefUnwindSafe for TokenManager
impl Send for TokenManager
impl Sync for TokenManager
impl Unpin for TokenManager
impl UnsafeUnpin for TokenManager
impl UnwindSafe for TokenManager
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, U, V, W, E, C> Compare<(T, U, V, W)> for C
impl<T, U, V, W, E, C> Compare<(T, U, V, W)> for C
type Error = E
fn compare( &self, a: &(T, U, V, W), b: &(T, U, V, W), ) -> Result<Ordering, <C as Compare<(T, U, V, W)>>::Error>
Source§impl<T, U, V, W, X, E, C> Compare<(T, U, V, W, X)> for C
impl<T, U, V, W, X, E, C> Compare<(T, U, V, W, X)> for C
type Error = E
fn compare( &self, a: &(T, U, V, W, X), b: &(T, U, V, W, X), ) -> Result<Ordering, <C as Compare<(T, U, V, W, X)>>::Error>
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for 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