Enum hdk::prelude::Entry[][src]

pub enum Entry {
    Agent(HoloHash<Agent>),
    App(AppEntryBytes),
    CapClaim(CapClaim),
    CapGrant(ZomeCallCapGrant),
}

Structure holding the entry portion of a chain element.

Variants

Agent(HoloHash<Agent>)

The Agent system entry, the third entry of every source chain, which grants authoring capability for this agent.

The application entry data for entries that aren’t system created entries

CapClaim(CapClaim)

The capability claim system entry which allows committing a granted permission for later use

The capability grant system entry which allows granting of application defined capabilities

Implementations

impl Entry[src]

pub fn as_cap_grant(&self) -> Option<CapGrant>[src]

If this entry represents a capability grant, return a CapGrant.

pub fn as_cap_claim(&self) -> Option<&CapClaim>[src]

If this entry represents a capability claim, return a CapClaim.

pub fn app(sb: SerializedBytes) -> Result<Entry, EntryError>[src]

Create an Entry::App from SerializedBytes

pub fn app_fancy<E, SB>(sb: SB) -> Result<Entry, EntryError> where
    E: Into<EntryError>,
    SB: TryInto<SerializedBytes, Error = SerializedBytesError>, 
[src]

Create an Entry::App from SerializedBytes

Trait Implementations

impl AsRef<Entry> for EntryWithDefId[src]

impl Clone for Entry[src]

impl Debug for Entry[src]

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

impl Eq for Entry[src]

impl HashableContent for Entry[src]

type HashType = Entry

The HashType which this content will be hashed to

impl PartialEq<Entry> for Entry[src]

impl Serialize for Entry[src]

impl StructuralEq for Entry[src]

impl StructuralPartialEq for Entry[src]

impl TryFrom<&'_ Anchor> for Entry[src]

type Error = WasmError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ Entry> for SerializedBytes[src]

type Error = SerializedBytesError

The type returned in the event of a conversion error.

impl TryFrom<&'_ Entry> for Anchor[src]

type Error = WasmError

The type returned in the event of a conversion error.

impl TryFrom<&'_ Entry> for Path[src]

type Error = WasmError

The type returned in the event of a conversion error.

impl TryFrom<&'_ Path> for Entry[src]

type Error = WasmError

The type returned in the event of a conversion error.

impl TryFrom<Anchor> for Entry[src]

type Error = WasmError

The type returned in the event of a conversion error.

impl TryFrom<Entry> for SerializedBytes[src]

type Error = SerializedBytesError

The type returned in the event of a conversion error.

impl TryFrom<Entry> for Anchor[src]

type Error = WasmError

The type returned in the event of a conversion error.

impl TryFrom<Entry> for Path[src]

type Error = WasmError

The type returned in the event of a conversion error.

impl TryFrom<Path> for Entry[src]

type Error = WasmError

The type returned in the event of a conversion error.

impl TryFrom<SerializedBytes> for Entry[src]

type Error = SerializedBytesError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Entry

impl Send for Entry

impl Sync for Entry

impl Unpin for Entry

impl UnwindSafe for Entry

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[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>,