Struct abstract_sdk::prelude::Modules
source · pub struct Modules<'a, T: ModuleInterface> { /* private fields */ }Expand description
API for retrieving information about installed modules.
Example
use abstract_sdk::prelude::*;
let modules: Modules<MockModule> = module.modules(deps.as_ref());Implementations§
source§impl<'a, T: ModuleInterface> Modules<'a, T>
impl<'a, T: ModuleInterface> Modules<'a, T>
sourcepub fn module_address(&self, module_id: ModuleId<'_>) -> AbstractSdkResult<Addr>
pub fn module_address(&self, module_id: ModuleId<'_>) -> AbstractSdkResult<Addr>
Retrieve the address of an application in this Account.
This should not be used to execute messages on an Api.
Use Modules::api_request(..) instead.
sourcepub fn module_version(
&self,
module_id: ModuleId<'_>
) -> AbstractSdkResult<ContractVersion>
pub fn module_version( &self, module_id: ModuleId<'_> ) -> AbstractSdkResult<ContractVersion>
Retrieve the version of an application in this Account. Note: this method makes use of the Cw2 query and may not coincide with the version of the module listed in VersionControl.
sourcepub fn assert_module_dependency(
&self,
module_id: ModuleId<'_>
) -> AbstractSdkResult<()>
pub fn assert_module_dependency( &self, module_id: ModuleId<'_> ) -> AbstractSdkResult<()>
Assert that a module is a dependency of this module.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for Modules<'a, T>
impl<'a, T> !Send for Modules<'a, T>
impl<'a, T> !Sync for Modules<'a, T>
impl<'a, T> Unpin for Modules<'a, T>
impl<'a, T> !UnwindSafe for Modules<'a, T>
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