[][src]Macro hdk::from

macro_rules! from {
    (
        $other_type:expr,
        link_type: $link_type:expr,

        validation_package: || $package_creator:expr,
        validation: |  $validation_data:ident : hdk::LinkValidationData | $link_validation:expr
    ) => { ... };
}

The from macro is a helper for creating ValidatingEntryType definitions for use within the entry macro. It is a convenience wrapper around link! that has all the same properties except for the direction which gets set to LinkDirection::From.