Struct hdk::prelude::entry_def::EntryDef[][src]

pub struct EntryDef {
    pub id: EntryDefId,
    pub visibility: EntryVisibility,
    pub crdt_type: CrdtType,
    pub required_validations: RequiredValidations,
    pub required_validation_type: RequiredValidationType,
}

Fields

id: EntryDefId

Zome-unique identifier for this entry type

visibility: EntryVisibility

Public or Private

crdt_type: CrdtType

TBD – Special types of conflict resolution support from Holochain (e.g. Single-Author, )

required_validations: RequiredValidations

how many validations to receive before considered “network saturated” (MAX value of 50?)

required_validation_type: RequiredValidationType

The required validation package for this entry

Implementations

impl EntryDef[src]

pub fn new(
    id: EntryDefId,
    visibility: EntryVisibility,
    crdt_type: CrdtType,
    required_validations: RequiredValidations,
    required_validation_type: RequiredValidationType
) -> EntryDef
[src]

pub fn default_with_id<I>(id: I) -> EntryDef where
    I: Into<EntryDefId>, 
[src]

Trait Implementations

impl Clone for EntryDef[src]

impl Debug for EntryDef[src]

impl<'de> Deserialize<'de> for EntryDef[src]

impl From<&'_ Anchor> for EntryDef where
    Anchor: EntryDefRegistration
[src]

impl From<&'_ Path> for EntryDef where
    Path: EntryDefRegistration
[src]

impl From<Anchor> for EntryDef where
    Anchor: EntryDefRegistration
[src]

impl From<Path> for EntryDef where
    Path: EntryDefRegistration
[src]

impl PartialEq<EntryDef> for EntryDef[src]

impl Serialize for EntryDef[src]

impl StructuralPartialEq for EntryDef[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T> From<T> for T[src]

impl<T> Instrument 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 = Infallible

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<V, T> VZip<V> for T where
    V: MultiLane<T>,