Struct boot_core::ContractCodeReference
source · pub struct ContractCodeReference<ExecT = Empty, QueryT = Empty>where
ExecT: Clone + Debug + PartialEq + JsonSchema + DeserializeOwned + 'static,
QueryT: CustomQuery + DeserializeOwned + 'static,{
pub wasm_code_path: Option<String>,
pub contract_endpoints: Option<Box<dyn TestContract<ExecT, QueryT>>>,
}
Fields§
§wasm_code_path: Option<String>
§contract_endpoints: Option<Box<dyn TestContract<ExecT, QueryT>>>
Implementations§
source§impl<ExecT, QueryT> ContractCodeReference<ExecT, QueryT>where
ExecT: Clone + Debug + PartialEq + JsonSchema + DeserializeOwned + 'static,
QueryT: CustomQuery + DeserializeOwned + 'static,
impl<ExecT, QueryT> ContractCodeReference<ExecT, QueryT>where ExecT: Clone + Debug + PartialEq + JsonSchema + DeserializeOwned + 'static, QueryT: CustomQuery + DeserializeOwned + 'static,
sourcepub fn get_wasm_code_path(&self) -> Result<String, DaemonError>
pub fn get_wasm_code_path(&self) -> Result<String, DaemonError>
Checks the environment for the wasm dir configuration and returns the path to the wasm file
Trait Implementations§
source§impl Clone for ContractCodeReference
impl Clone for ContractCodeReference
source§impl<ExecT, QueryT> Default for ContractCodeReference<ExecT, QueryT>where
ExecT: Clone + Debug + PartialEq + JsonSchema + DeserializeOwned + 'static + Default,
QueryT: CustomQuery + DeserializeOwned + 'static + Default,
impl<ExecT, QueryT> Default for ContractCodeReference<ExecT, QueryT>where ExecT: Clone + Debug + PartialEq + JsonSchema + DeserializeOwned + 'static + Default, QueryT: CustomQuery + DeserializeOwned + 'static + Default,
source§fn default() -> ContractCodeReference<ExecT, QueryT>
fn default() -> ContractCodeReference<ExecT, QueryT>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<ExecT = Empty, QueryT = Empty> !RefUnwindSafe for ContractCodeReference<ExecT, QueryT>
impl<ExecT = Empty, QueryT = Empty> !Send for ContractCodeReference<ExecT, QueryT>
impl<ExecT = Empty, QueryT = Empty> !Sync for ContractCodeReference<ExecT, QueryT>
impl<ExecT, QueryT> Unpin for ContractCodeReference<ExecT, QueryT>
impl<ExecT = Empty, QueryT = Empty> !UnwindSafe for ContractCodeReference<ExecT, QueryT>
Blanket Implementations§
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