Struct cosmwasm_vm::testing::MockInstanceOptions [−][src]
pub struct MockInstanceOptions<'a> {
pub balances: &'a [(&'a str, &'a [Coin])],
pub contract_balance: Option<&'a [Coin]>,
pub backend_error: Option<&'static str>,
pub supported_features: HashSet<String>,
pub gas_limit: u64,
pub print_debug: bool,
pub memory_limit: Option<Size>,
}Fields
balances: &'a [(&'a str, &'a [Coin])]contract_balance: Option<&'a [Coin]>This option is merged into balances and might override an existing value
backend_error: Option<&'static str>When set, all calls to the API fail with BackendError::Unknown containing this message
supported_features: HashSet<String>gas_limit: u64print_debug: boolmemory_limit: Option<Size>Memory limit in bytes. Use a value that is divisible by the Wasm page size 65536, e.g. full MiBs.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for MockInstanceOptions<'a>
impl<'a> Send for MockInstanceOptions<'a>
impl<'a> Sync for MockInstanceOptions<'a>
impl<'a> Unpin for MockInstanceOptions<'a>
impl<'a> UnwindSafe for MockInstanceOptions<'a>
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self