[−][src]Struct hdk::entry_definition::ValidatingLinkDefinition
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
impl !RefUnwindSafe for ValidatingLinkDefinition
impl !Send for ValidatingLinkDefinition
impl Sync for ValidatingLinkDefinition
impl Unpin for ValidatingLinkDefinition
impl !UnwindSafe for ValidatingLinkDefinition
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,