pub enum ContractContainer {
Wasm(WasmAPIVersion),
}
Expand description
Wrapper that allows contract versioning. This enum maintains the types of contracts that are allowed and their corresponding version.
Variants§
Wasm(WasmAPIVersion)
Implementations§
Source§impl ContractContainer
impl ContractContainer
Sourcepub fn key(&self) -> ContractKey
pub fn key(&self) -> ContractKey
Return the ContractKey
from the specific contract version.
Sourcepub fn params(&self) -> Parameters<'static>
pub fn params(&self) -> Parameters<'static>
Return the Parameters
from the specific contract version.
Trait Implementations§
Source§impl Clone for ContractContainer
impl Clone for ContractContainer
Source§fn clone(&self) -> ContractContainer
fn clone(&self) -> ContractContainer
Returns a duplicate 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 ContractContainer
impl Debug for ContractContainer
Source§impl<'de> Deserialize<'de> for ContractContainer
impl<'de> Deserialize<'de> for ContractContainer
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 Display for ContractContainer
impl Display for ContractContainer
Source§impl From<ContractContainer> for Version
impl From<ContractContainer> for Version
Source§fn from(contract: ContractContainer) -> Version
fn from(contract: ContractContainer) -> Version
Converts to this type from the input type.
Source§impl PartialEq for ContractContainer
impl PartialEq for ContractContainer
Source§impl Serialize for ContractContainer
impl Serialize for ContractContainer
Source§impl<'a> TryFrom<(&'a Path, Parameters<'static>)> for ContractContainer
impl<'a> TryFrom<(&'a Path, Parameters<'static>)> for ContractContainer
Source§impl TryFromTsStd<&Value> for ContractContainer
impl TryFromTsStd<&Value> for ContractContainer
fn try_decode(value: &Value) -> Result<Self, WsApiError>
impl Eq for ContractContainer
impl StructuralPartialEq for ContractContainer
Auto Trait Implementations§
impl Freeze for ContractContainer
impl RefUnwindSafe for ContractContainer
impl Send for ContractContainer
impl Sync for ContractContainer
impl Unpin for ContractContainer
impl UnwindSafe for ContractContainer
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