[−][src]Enum hdk::prelude::EntryValidationData
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
The create variant contains an entry T and the validation package.
Fields of Create
entry: T
validation_data: ValidationData
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
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
Trait Implementations
impl<T> Clone for EntryValidationData<T> where
T: Clone,
[src]
T: Clone,
fn clone(&self) -> EntryValidationData<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Debug for EntryValidationData<T> where
T: Debug,
[src]
T: Debug,
impl<'de, T> Deserialize<'de> for EntryValidationData<T> where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<EntryValidationData<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<EntryValidationData<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<T> Serialize for EntryValidationData<T> where
T: Serialize,
[src]
T: Serialize,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl TryFrom<EntryValidationData<Entry>> for EntryType
[src]
type Error = HolochainError
The type returned in the event of a conversion error.
fn try_from(
entry_validation: EntryValidationData<Entry>
) -> Result<EntryType, <EntryType as TryFrom<EntryValidationData<Entry>>>::Error>
[src]
entry_validation: EntryValidationData<Entry>
) -> Result<EntryType, <EntryType as TryFrom<EntryValidationData<Entry>>>::Error>
Auto Trait Implementations
impl<T> RefUnwindSafe for EntryValidationData<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for EntryValidationData<T> where
T: Send,
T: Send,
impl<T> Sync for EntryValidationData<T> where
T: Sync,
T: Sync,
impl<T> Unpin for EntryValidationData<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for EntryValidationData<T> where
T: UnwindSafe,
T: UnwindSafe,
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> Clone for T where
T: Clone,
[src]
T: Clone,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,