Struct multiversx_sc_scenario::WhiteboxContract
source · pub struct WhiteboxContract<ContractObj>{
pub address_expr: AddressKey,
pub contract_obj_builder: fn() -> ContractObj,
}
Expand description
Wraps a contract that is supposed to be used in whitebox tests.
For this reason it references the concrete SC type explicitly.
Fields§
§address_expr: AddressKey
§contract_obj_builder: fn() -> ContractObj
Implementations§
source§impl<ContractObj> WhiteboxContract<ContractObj>
impl<ContractObj> WhiteboxContract<ContractObj>
pub fn new<A: Into<AddressKey>>( address_expr: A, contract_obj_builder: fn() -> ContractObj ) -> Self
Auto Trait Implementations§
impl<ContractObj> CodecFromSelf for WhiteboxContract<ContractObj>
impl<ContractObj> Freeze for WhiteboxContract<ContractObj>
impl<ContractObj> RefUnwindSafe for WhiteboxContract<ContractObj>
impl<ContractObj> Send for WhiteboxContract<ContractObj>
impl<ContractObj> Sync for WhiteboxContract<ContractObj>
impl<ContractObj> Unpin for WhiteboxContract<ContractObj>
impl<ContractObj> UnwindSafe for WhiteboxContract<ContractObj>
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