[][src]Struct cw_multi_test::ContractWrapper

pub struct ContractWrapper<T1, T2, T3, E1, E2, E3> where
    T1: DeserializeOwned,
    T2: DeserializeOwned,
    T3: DeserializeOwned,
    E1: Display,
    E2: Display,
    E3: Display
{ /* fields omitted */ }

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]

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]

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.