[][src]Enum hdk::EntryValidationData

pub enum EntryValidationData<T> {
    Create {
        entry: T,
        validation_data: ValidationData,
    },
    Modify {
        new_entry: T,
        old_entry: T,
        old_entry_header: ChainHeader,
        validation_data: ValidationData,
    },
    Delete {
        old_entry: T,
        old_entry_header: ChainHeader,
        validation_data: ValidationData,
    },
}

This struct carries information needed for Validating Entry Data, It is passed between callbacks and allows the user to validate using each supplied variant.

Variants

Create

The create variant contains an entry T and the validation package.

Fields of Create

entry: Tvalidation_data: ValidationData
Modify

The Modify variant contains the new entry T, old entry of the same type, the entry header of the old entry and a validation package

Fields of Modify

new_entry: Told_entry: Told_entry_header: ChainHeadervalidation_data: ValidationData
Delete

The delete contains an old entry which is the entry being deleted and the old entry header of type ChainHeader and a validation package

Fields of Delete

old_entry: Told_entry_header: ChainHeadervalidation_data: ValidationData

Trait Implementations

impl TryFrom<EntryValidationData<Entry>> for EntryType[src]

type Error = HolochainError

The type returned in the event of a conversion error.

impl<T> Debug for EntryValidationData<T> where
    T: Debug
[src]

impl<'de, T> Deserialize<'de> for EntryValidationData<T> where
    T: Deserialize<'de>, 
[src]

impl<T> Serialize for EntryValidationData<T> where
    T: Serialize
[src]

impl<T> Clone for EntryValidationData<T> where
    T: Clone
[src]

Auto Trait Implementations

impl<T> Send for EntryValidationData<T> where
    T: Send

impl<T> Sync for EntryValidationData<T> where
    T: Sync

impl<T> Unpin for EntryValidationData<T> where
    T: Unpin

impl<T> UnwindSafe for EntryValidationData<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for EntryValidationData<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> From<T> 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 = !

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<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Clone for T where
    T: Clone
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,