Trait cw_iper_test::ContractWrapperExt
source · pub trait ContractWrapperExt<T1, T2, T3, E1, E2, E3, C = Empty, Q = Empty, T4 = Empty, E4 = AnyError, E5 = AnyError, T6 = Empty, E6 = AnyError>where
T1: DeserializeOwned,
T2: DeserializeOwned,
T3: DeserializeOwned,
T4: DeserializeOwned,
T6: DeserializeOwned,
E1: Display + Debug + Send + Sync,
E2: Display + Debug + Send + Sync,
E3: Display + Debug + Send + Sync,
E4: Display + Debug + Send + Sync,
E5: Display + Debug + Send + Sync,
E6: Display + Debug + Send + Sync,
C: CustomMsg,
Q: CustomQuery + DeserializeOwned,{
// Required method
fn to_contract(self) -> Box<dyn Contract<C, Q>>;
}
Expand description
Extension of ContractWrapper
, allowing to transform it into Contract
directly
Required Methods§
sourcefn to_contract(self) -> Box<dyn Contract<C, Q>>
fn to_contract(self) -> Box<dyn Contract<C, Q>>
Transform ContractWrapper
into Contract