pub struct ContractVariantSettings {
pub external_view: bool,
pub panic_message: bool,
pub check_ei: Option<EIVersion>,
pub allocator: ContractAllocator,
pub stack_size: usize,
pub features: Vec<String>,
pub default_features: Option<bool>,
pub kill_legacy_callback: bool,
pub profile: ContractVariantProfile,
}
Expand description
Collection of flags, specified in the multicontract config.
Fields§
§external_view: bool
External view contracts are just readers of data from another contract.
panic_message: bool
Panic messages add a lot of bloat to the final bytecode, so they should only be used for debugging purposes.
check_ei: Option<EIVersion>
Post-processing check of the VM hooks is based on this.
allocator: ContractAllocator
Allocator config, i.e which allocator to choose for the contract.
stack_size: usize
§features: Vec<String>
Features that are activated on the contract crate, from wasm.
default_features: Option<bool>
Allows disabling default features in the contract crate, from wasm.
kill_legacy_callback: bool
Forcibly remove the original contrct legacy callback.
profile: ContractVariantProfile
Trait Implementations§
Source§impl Clone for ContractVariantSettings
impl Clone for ContractVariantSettings
Source§fn clone(&self) -> ContractVariantSettings
fn clone(&self) -> ContractVariantSettings
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ContractVariantSettings
impl Debug for ContractVariantSettings
Source§impl Default for ContractVariantSettings
impl Default for ContractVariantSettings
Source§impl PartialEq for ContractVariantSettings
impl PartialEq for ContractVariantSettings
impl Eq for ContractVariantSettings
impl StructuralPartialEq for ContractVariantSettings
Auto Trait Implementations§
impl Freeze for ContractVariantSettings
impl RefUnwindSafe for ContractVariantSettings
impl Send for ContractVariantSettings
impl Sync for ContractVariantSettings
impl Unpin for ContractVariantSettings
impl UnwindSafe for ContractVariantSettings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.