Struct abstract_testing::map_tester::CwMapTesterBuilder
source · pub struct CwMapTesterBuilder<'a, ExecMsg, TError, K, V, UncheckedK, UncheckedV>where
K: PrimaryKey<'a> + KeyDeserialize + Debug,
K::Output: 'static,{ /* private fields */ }Expand description
Builder for CwMapTester.
Implementations§
source§impl<'a, ExecMsg, TError, K, V, UncheckedK, UncheckedV> CwMapTesterBuilder<'a, ExecMsg, TError, K, V, UncheckedK, UncheckedV>where
K: PrimaryKey<'a> + KeyDeserialize + Debug,
K::Output: 'static,
impl<'a, ExecMsg, TError, K, V, UncheckedK, UncheckedV> CwMapTesterBuilder<'a, ExecMsg, TError, K, V, UncheckedK, UncheckedV>where K: PrimaryKey<'a> + KeyDeserialize + Debug, K::Output: 'static,
pub fn info(self, value: MessageInfo) -> Self
pub fn map(self, value: Map<'a, 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_builder(self, value: fn() -> (UncheckedK, UncheckedV)) -> Self
pub fn from_checked_entry( self, value: fn(_: (K::Output, V)) -> (UncheckedK, UncheckedV) ) -> Self
sourcepub fn build(
self
) -> Result<CwMapTester<'a, ExecMsg, TError, K, V, UncheckedK, UncheckedV>, CwMapTesterBuilderError>
pub fn build( self ) -> Result<CwMapTester<'a, ExecMsg, TError, K, V, UncheckedK, UncheckedV>, CwMapTesterBuilderError>
Trait Implementations§
source§impl<'a, ExecMsg, TError, K, V, UncheckedK, UncheckedV> Default for CwMapTesterBuilder<'a, ExecMsg, TError, K, V, UncheckedK, UncheckedV>where
K: PrimaryKey<'a> + KeyDeserialize + Debug,
K::Output: 'static,
impl<'a, ExecMsg, TError, K, V, UncheckedK, UncheckedV> Default for CwMapTesterBuilder<'a, ExecMsg, TError, K, V, UncheckedK, UncheckedV>where K: PrimaryKey<'a> + KeyDeserialize + Debug, K::Output: 'static,
Auto Trait Implementations§
impl<'a, ExecMsg, TError, K, V, UncheckedK, UncheckedV> RefUnwindSafe for CwMapTesterBuilder<'a, ExecMsg, TError, K, V, UncheckedK, UncheckedV>where K: RefUnwindSafe, V: RefUnwindSafe,
impl<'a, ExecMsg, TError, K, V, UncheckedK, UncheckedV> Send for CwMapTesterBuilder<'a, ExecMsg, TError, K, V, UncheckedK, UncheckedV>where K: Send, V: Send,
impl<'a, ExecMsg, TError, K, V, UncheckedK, UncheckedV> Sync for CwMapTesterBuilder<'a, ExecMsg, TError, K, V, UncheckedK, UncheckedV>where K: Sync, V: Sync,
impl<'a, ExecMsg, TError, K, V, UncheckedK, UncheckedV> Unpin for CwMapTesterBuilder<'a, ExecMsg, TError, K, V, UncheckedK, UncheckedV>where K: Unpin, V: Unpin,
impl<'a, ExecMsg, TError, K, V, UncheckedK, UncheckedV> UnwindSafe for CwMapTesterBuilder<'a, ExecMsg, TError, K, V, UncheckedK, UncheckedV>where K: UnwindSafe, V: UnwindSafe,
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