Struct hdk::prelude::OpenChain[][src]

pub struct OpenChain {
    pub author: HoloHash<Agent>,
    pub timestamp: Timestamp,
    pub header_seq: u32,
    pub prev_header: HoloHash<Header>,
    pub prev_dna_hash: HoloHash<Dna>,
}

When migrating to a new version of a DNA, this header is committed to the new chain to declare the migration path taken. Currently unused

Fields

author: HoloHash<Agent>timestamp: Timestampheader_seq: u32prev_header: HoloHash<Header>prev_dna_hash: HoloHash<Dna>

Implementations

impl OpenChain[src]

pub fn from_builder(
    common: HeaderBuilderCommon,
    prev_dna_hash: HoloHash<Dna>
) -> OpenChain
[src]

Trait Implementations

impl Clone for OpenChain[src]

impl Debug for OpenChain[src]

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

impl Eq for OpenChain[src]

impl From<(OpenChain, HeaderBuilderCommon)> for OpenChain[src]

impl HeaderBuilder<OpenChain> for OpenChain[src]

impl HeaderInner for OpenChain[src]

impl PartialEq<OpenChain> for OpenChain[src]

impl Serialize for OpenChain[src]

impl StructuralEq for OpenChain[src]

impl StructuralPartialEq for OpenChain[src]

impl<'_> TryFrom<&'_ OpenChain> for SerializedBytes[src]

type Error = SerializedBytesError

The type returned in the event of a conversion error.

impl TryFrom<OpenChain> for SerializedBytes[src]

type Error = SerializedBytesError

The type returned in the event of a conversion error.

impl TryFrom<SerializedBytes> for OpenChain[src]

type Error = SerializedBytesError

The type returned in the event of a conversion error.

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument 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.

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