Struct abstract_client::Application
source · pub struct Application<T: CwEnv, M> { /* private fields */ }
Expand description
An application represents a module installed on a (sub)-Account
.
It derefs to the module itself, so you can call its methods directly from the application struct.
Implementations§
source§impl<Chain: CwEnv, M: RegisteredModule> Application<Chain, M>
impl<Chain: CwEnv, M: RegisteredModule> Application<Chain, M>
sourcepub fn module<T: RegisteredModule + From<Contract<Chain>>>(
&self
) -> Result<T, AbstractClientError>
pub fn module<T: RegisteredModule + From<Contract<Chain>>>( &self ) -> Result<T, AbstractClientError>
Attempts to get a module on the application. This would typically be a dependency of the
module of type M
.
source§impl<Chain: CwEnv, M: ContractInstance<Chain>> Application<Chain, M>
impl<Chain: CwEnv, M: ContractInstance<Chain>> Application<Chain, M>
Authorize this application on installed adapters. Accepts Module Id’s of adapters
Trait Implementations§
source§impl<Chain: CwEnv, M> Deref for Application<Chain, M>
impl<Chain: CwEnv, M> Deref for Application<Chain, M>
Allows to access the module’s methods directly from the application struct
Auto Trait Implementations§
impl<T, M> Freeze for Application<T, M>
impl<T, M> RefUnwindSafe for Application<T, M>where
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, M> Send for Application<T, M>
impl<T, M> Sync for Application<T, M>
impl<T, M> Unpin for Application<T, M>
impl<T, M> UnwindSafe for Application<T, M>where
M: UnwindSafe,
T: UnwindSafe,
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> 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