[][src]Struct hdk::entry_definition::ValidatingLinkDefinition

pub struct ValidatingLinkDefinition {
    pub direction: LinkDirection,
    pub other_entry_type: String,
    pub link_type: String,
    pub package_creator: PackageCreator,
    pub validator: LinkValidator,
}

Similar to ValidatingEntryType, this provides the dynamic aspects of link definitions, the validation callbacks, and thus completes the structs in the DNA crate. The entry! macro expects an array of links that are represented by instances of this struct.

DNA developers don't need to use this type directly but instead should use the link!, to! or from! macro.

Fields

direction: LinkDirection

Is this link defined as pointing from this entry type to some other type, or from the other type to this?

other_entry_type: String

The other entry type the link connects this entry type to

link_type: String

Tag (i.e. name) of this type of links

package_creator: PackageCreator

Callback that returns a validation package definition that Holochain reads in order to create the right validation package to pass in to the validator callback on validation.

validator: LinkValidator

This is the validation callback that is used to determine if a link is valid.

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> From<T> for T[src]

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

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<V, T> VZip<V> for T where
    V: MultiLane<T>,