pub struct AbstractMockQuerierBuilder { /* private fields */ }Implementations§
source§impl AbstractMockQuerierBuilder
impl AbstractMockQuerierBuilder
sourcepub fn account(self, manager: &str, proxy: &str, account_id: u32) -> Self
pub fn account(self, manager: &str, proxy: &str, account_id: u32) -> Self
Mock the existence of an Account by setting the Account id for the proxy and manager along with registering the account to version control.
sourcepub fn assets(self, assets: Vec<(&AssetEntry, AssetInfo)>) -> Self
pub fn assets(self, assets: Vec<(&AssetEntry, AssetInfo)>) -> Self
Add mock assets into ANS
sourcepub fn set_version_control(self, version_control: &'static str) -> Self
pub fn set_version_control(self, version_control: &'static str) -> Self
Change the version control address. Any account added after this will be registered to this address.
pub fn ans(self, _ans: MockAnsHost) -> Self
pub fn builder(self) -> MockQuerierBuilder
pub fn build(self) -> MockQuerier
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AbstractMockQuerierBuilder
impl !Send for AbstractMockQuerierBuilder
impl !Sync for AbstractMockQuerierBuilder
impl Unpin for AbstractMockQuerierBuilder
impl !UnwindSafe for AbstractMockQuerierBuilder
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moresource§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