[][src]Enum grin_wallet_libwallet::slate_versions::VersionedCoinbase

pub enum VersionedCoinbase {
    V4(CoinbaseV4),
    V3(CoinbaseV3),
}

Versions are ordered newest to oldest so serde attempts to deserialize newer versions first, then falls back to older versions.

Variants

Current supported coinbase version.

Previous supported coinbase version.

Implementations

impl VersionedCoinbase[src]

pub fn into_version(cb: CbData, version: SlateVersion) -> VersionedCoinbase[src]

convert this coinbase data to a specific versioned representation for the json api.

Trait Implementations

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

impl Serialize for VersionedCoinbase[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> SafeBorrow<T> for T where
    T: ?Sized

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,