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

pub struct CreateLink {
    pub author: HoloHash<Agent>,
    pub timestamp: Timestamp,
    pub header_seq: u32,
    pub prev_header: HoloHash<Header>,
    pub base_address: HoloHash<Entry>,
    pub target_address: HoloHash<Entry>,
    pub zome_id: ZomeId,
    pub tag: LinkTag,
}

Declares that a metadata Link should be made between two EntryHashes

Fields

author: HoloHash<Agent>timestamp: Timestampheader_seq: u32prev_header: HoloHash<Header>base_address: HoloHash<Entry>target_address: HoloHash<Entry>zome_id: ZomeIdtag: LinkTag

Implementations

impl CreateLink[src]

pub fn from_builder(
    common: HeaderBuilderCommon,
    base_address: HoloHash<Entry>,
    target_address: HoloHash<Entry>,
    zome_id: ZomeId,
    tag: LinkTag
) -> CreateLink
[src]

Trait Implementations

impl Clone for CreateLink[src]

impl Debug for CreateLink[src]

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

impl Eq for CreateLink[src]

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

impl HeaderBuilder<CreateLink> for CreateLink[src]

impl HeaderInner for CreateLink[src]

impl PartialEq<CreateLink> for CreateLink[src]

impl Serialize for CreateLink[src]

impl StructuralEq for CreateLink[src]

impl StructuralPartialEq for CreateLink[src]

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

type Error = SerializedBytesError

The type returned in the event of a conversion error.

impl<'a> TryFrom<&'a Header> for &'a CreateLink[src]

type Error = WrongHeaderError

The type returned in the event of a conversion error.

impl TryFrom<CreateLink> for SerializedBytes[src]

type Error = SerializedBytesError

The type returned in the event of a conversion error.

impl TryFrom<Element> for CreateLink[src]

type Error = WrongHeaderError

The type returned in the event of a conversion error.

impl TryFrom<Header> for CreateLink[src]

type Error = WrongHeaderError

The type returned in the event of a conversion error.

impl TryFrom<SerializedBytes> for CreateLink[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>,