[−][src]Struct cw_multi_test::ContractWrapper
Wraps the exported functions from a contract and provides the normalized format TODO: Allow to customize return values (CustomMsg beyond Empty)
Implementations
impl<T1, T2, T3, E1, E2, E3> ContractWrapper<T1, T2, T3, E1, E2, E3> where
T1: DeserializeOwned,
T2: DeserializeOwned,
T3: DeserializeOwned,
E1: Display,
E2: Display,
E3: Display,
[src]
T1: DeserializeOwned,
T2: DeserializeOwned,
T3: DeserializeOwned,
E1: Display,
E2: Display,
E3: Display,
pub fn new(
handle_fn: fn(deps: DepsMut<'_>, env: Env, info: MessageInfo, msg: T1) -> Result<HandleResponse, E1>,
init_fn: fn(deps: DepsMut<'_>, env: Env, info: MessageInfo, msg: T2) -> Result<InitResponse, E2>,
query_fn: fn(deps: Deps<'_>, env: Env, msg: T3) -> Result<Binary, E3>
) -> Self
[src]
handle_fn: fn(deps: DepsMut<'_>, env: Env, info: MessageInfo, msg: T1) -> Result<HandleResponse, E1>,
init_fn: fn(deps: DepsMut<'_>, env: Env, info: MessageInfo, msg: T2) -> Result<InitResponse, E2>,
query_fn: fn(deps: Deps<'_>, env: Env, msg: T3) -> Result<Binary, E3>
) -> Self
Trait Implementations
impl<T1, T2, T3, E1, E2, E3> Contract for ContractWrapper<T1, T2, T3, E1, E2, E3> where
T1: DeserializeOwned,
T2: DeserializeOwned,
T3: DeserializeOwned,
E1: Display,
E2: Display,
E3: Display,
[src]
T1: DeserializeOwned,
T2: DeserializeOwned,
T3: DeserializeOwned,
E1: Display,
E2: Display,
E3: Display,
pub fn handle(
&self,
deps: DepsMut<'_>,
env: Env,
info: MessageInfo,
msg: Vec<u8>
) -> Result<HandleResponse, String>
[src]
&self,
deps: DepsMut<'_>,
env: Env,
info: MessageInfo,
msg: Vec<u8>
) -> Result<HandleResponse, String>
pub fn init(
&self,
deps: DepsMut<'_>,
env: Env,
info: MessageInfo,
msg: Vec<u8>
) -> Result<InitResponse, String>
[src]
&self,
deps: DepsMut<'_>,
env: Env,
info: MessageInfo,
msg: Vec<u8>
) -> Result<InitResponse, String>
pub fn query(
&self,
deps: Deps<'_>,
env: Env,
msg: Vec<u8>
) -> Result<Binary, String>
[src]
&self,
deps: Deps<'_>,
env: Env,
msg: Vec<u8>
) -> Result<Binary, String>
Auto Trait Implementations
impl<T1, T2, T3, E1, E2, E3> RefUnwindSafe for ContractWrapper<T1, T2, T3, E1, E2, E3>
[src]
impl<T1, T2, T3, E1, E2, E3> Send for ContractWrapper<T1, T2, T3, E1, E2, E3>
[src]
impl<T1, T2, T3, E1, E2, E3> Sync for ContractWrapper<T1, T2, T3, E1, E2, E3>
[src]
impl<T1, T2, T3, E1, E2, E3> Unpin for ContractWrapper<T1, T2, T3, E1, E2, E3>
[src]
impl<T1, T2, T3, E1, E2, E3> UnwindSafe for ContractWrapper<T1, T2, T3, E1, E2, E3>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,