[][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<T> Clone for EntryValidationData<T> where
    T: Clone
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

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

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

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

Auto Trait Implementations

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

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

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

impl<T> Same for T

type Output = T

Should always be Self