pub struct AbstractMockQuerierBuilder { /* private fields */ }
Implementations§
source§impl AbstractMockQuerierBuilder
impl AbstractMockQuerierBuilder
sourcepub fn account(self, manager: &str, proxy: &str, account_id: AccountId) -> Self
pub fn account(self, manager: &str, proxy: &str, account_id: AccountId) -> 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
pub fn channels(self, channels: Vec<(&ChannelEntry, String)>) -> Self
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 Freeze for AbstractMockQuerierBuilder
impl !RefUnwindSafe for AbstractMockQuerierBuilder
impl !Send for AbstractMockQuerierBuilder
impl !Sync for AbstractMockQuerierBuilder
impl Unpin for AbstractMockQuerierBuilder
impl !UnwindSafe for AbstractMockQuerierBuilder
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