Struct beaker::WasmConfig
source · pub struct WasmConfig {
pub contract_dir: String,
pub optimizer_version: String,
pub template_repos: HashMap<String, String>,
}Fields§
§contract_dir: StringDirectory for storing contracts
optimizer_version: StringVersion of rust-optimizer
template_repos: HashMap<String, String>Reference to contract template repository
Trait Implementations§
source§impl<'a> Context<'a, WasmConfig> for WasmContext
impl<'a> Context<'a, WasmConfig> for WasmContext
fn config(&self) -> Result<WasmConfig>
fn config_file_name(&self) -> String
fn config_file_path(&self) -> Result<PathBuf>
fn root(&self) -> Result<PathBuf>
fn global_config(&self) -> Result<GlobalConfig>
source§impl Default for WasmConfig
impl Default for WasmConfig
source§impl<'de> Deserialize<'de> for WasmConfig
impl<'de> Deserialize<'de> for WasmConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl GetDataDocs for WasmConfig
impl GetDataDocs for WasmConfig
fn get_data_docs() -> Vec<DataDoc>
source§impl<'a> Module<'a, WasmConfig, WasmCmd, Error> for WasmModule
impl<'a> Module<'a, WasmConfig, WasmCmd, Error> for WasmModule
Auto Trait Implementations§
impl RefUnwindSafe for WasmConfig
impl Send for WasmConfig
impl Sync for WasmConfig
impl Unpin for WasmConfig
impl UnwindSafe for WasmConfig
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.