pub struct CwMapTesterBuilder<ExecMsg, TError, K, V, UncheckedK, UncheckedV>{ /* private fields */ }
Expand description
Builder for CwMapTester
.
Implementations§
Source§impl<ExecMsg, TError, K, V, UncheckedK, UncheckedV> CwMapTesterBuilder<ExecMsg, TError, K, V, UncheckedK, UncheckedV>
impl<ExecMsg, TError, K, V, UncheckedK, UncheckedV> CwMapTesterBuilder<ExecMsg, TError, K, V, UncheckedK, UncheckedV>
pub fn info(self, value: MessageInfo) -> Self
pub fn map(self, value: Map<K, V>) -> Self
pub fn execute( self, value: fn(deps: DepsMut<'_>, env: Env, info: MessageInfo, msg: ExecMsg) -> Result<Response, TError>, ) -> Self
pub fn msg_builder( self, value: fn(to_add: Vec<(UncheckedK, UncheckedV)>, to_remove: Vec<UncheckedK>) -> ExecMsg, ) -> Self
pub fn mock_entry(self, value: (UncheckedK, UncheckedV)) -> Self
pub fn from_checked_entry( self, value: fn(_: (K::Output, V)) -> (UncheckedK, UncheckedV), ) -> Self
Sourcepub fn build(
self,
) -> Result<CwMapTester<ExecMsg, TError, K, V, UncheckedK, UncheckedV>, CwMapTesterBuilderError>
pub fn build( self, ) -> Result<CwMapTester<ExecMsg, TError, K, V, UncheckedK, UncheckedV>, CwMapTesterBuilderError>
Trait Implementations§
Auto Trait Implementations§
impl<ExecMsg, TError, K, V, UncheckedK, UncheckedV> Freeze for CwMapTesterBuilder<ExecMsg, TError, K, V, UncheckedK, UncheckedV>
impl<ExecMsg, TError, K, V, UncheckedK, UncheckedV> RefUnwindSafe for CwMapTesterBuilder<ExecMsg, TError, K, V, UncheckedK, UncheckedV>
impl<ExecMsg, TError, K, V, UncheckedK, UncheckedV> Send for CwMapTesterBuilder<ExecMsg, TError, K, V, UncheckedK, UncheckedV>
impl<ExecMsg, TError, K, V, UncheckedK, UncheckedV> Sync for CwMapTesterBuilder<ExecMsg, TError, K, V, UncheckedK, UncheckedV>
impl<ExecMsg, TError, K, V, UncheckedK, UncheckedV> Unpin for CwMapTesterBuilder<ExecMsg, TError, K, V, UncheckedK, UncheckedV>
impl<ExecMsg, TError, K, V, UncheckedK, UncheckedV> UnwindSafe for CwMapTesterBuilder<ExecMsg, TError, K, V, UncheckedK, UncheckedV>
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