pub struct InstallConfig {
pub package_named_key: String,
pub is_upgradable: bool,
pub allow_key_override: bool,
}Expand description
A configuration for a contract.
The configuration every contract written in Odra expects. Read more: [https://odra.dev/docs/backends/casper/#wasm-arguments]
Fields§
§package_named_key: StringReturns the package hash of the contract.
Used to set the odra_cfg_package_hash_key_name key at the contract initialization.
is_upgradable: boolReturns true if the contract should be deployed as upgradable.
If true, the odra_cfg_is_upgradable key is set to true at the contract initialization.
allow_key_override: boolIf true and the key odra_cfg_package_hash_key_name already exists, it should be overwritten.
Implementations§
Auto Trait Implementations§
impl Freeze for InstallConfig
impl RefUnwindSafe for InstallConfig
impl Send for InstallConfig
impl Sync for InstallConfig
impl Unpin for InstallConfig
impl UnwindSafe for InstallConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more