[−][src]Enum holochain_core_types::validation::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> Clone for EntryValidationData<T>
[src]
fn clone(&self) -> EntryValidationData<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug> Debug for EntryValidationData<T>
[src]
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<Self, Self::Error>
[src]
entry_validation: EntryValidationData<Entry>
) -> Result<Self, Self::Error>
impl<T> Serialize for EntryValidationData<T> where
T: Serialize,
[src]
T: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de, T> Deserialize<'de> for EntryValidationData<T> where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
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,
impl<T> RefUnwindSafe for EntryValidationData<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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<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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Clone for T where
T: Clone,
[src]
T: Clone,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,