[][src]Struct cw2::ContractVersion

pub struct ContractVersion {
    pub contract: String,
    pub version: String,
}

Fields

contract: String

contract is the crate name of the implementing contract, eg. crate:cw20-base we will use other prefixes for other languages, and their standard global namespacing

version: String

version is any string that this implementation knows. It may be simple counter "1", "2". or semantic version on release tags "v0.6.2", or some custom feature flag list. the only code that needs to understand the version parsing is code that knows how to migrate from the given contract (and is tied to it's implementation somehow)

Trait Implementations

impl Clone for ContractVersion[src]

impl Debug for ContractVersion[src]

impl<'de> Deserialize<'de> for ContractVersion[src]

impl JsonSchema for ContractVersion[src]

impl PartialEq<ContractVersion> for ContractVersion[src]

impl Serialize for ContractVersion[src]

impl StructuralPartialEq for ContractVersion[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.