Struct hdk::prelude::header::Dna[][src]

pub struct Dna {
    pub author: HoloHash<Agent>,
    pub timestamp: Timestamp,
    pub hash: HoloHash<Dna>,
}

The Dna Header is always the first header in a source chain

Fields

author: HoloHash<Agent>timestamp: Timestamphash: HoloHash<Dna>

Implementations

impl Dna[src]

pub fn from_builder(hash: HoloHash<Dna>, builder: HeaderBuilderCommon) -> Dna[src]

The Dna header can’t implement HeaderBuilder because it lacks a prev_header field, so this helper is provided as a special case

Trait Implementations

impl Clone for Dna[src]

impl Debug for Dna[src]

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

impl Eq for Dna[src]

impl HeaderInner for Dna[src]

impl PartialEq<Dna> for Dna[src]

impl Serialize for Dna[src]

impl StructuralEq for Dna[src]

impl StructuralPartialEq for Dna[src]

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

type Error = SerializedBytesError

The type returned in the event of a conversion error.

impl TryFrom<Dna> for SerializedBytes[src]

type Error = SerializedBytesError

The type returned in the event of a conversion error.

impl TryFrom<SerializedBytes> for Dna[src]

type Error = SerializedBytesError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Dna

impl Send for Dna

impl Sync for Dna

impl Unpin for Dna

impl UnwindSafe for Dna

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>,