[][src]Struct holochain_wasm_utils::api_serialization::get_entry::GetEntryResultItem

pub struct GetEntryResultItem {
    pub meta: Option<EntryResultMeta>,
    pub entry: Option<Entry>,
    pub headers: Vec<ChainHeader>,
}

Structure that holds data returned from a get entry request. When the meta is None, we know the entry wasn't found. This is because at the very least the entry_type and the address will be returned if nothing else was requested in the GetEntryOptions

Fields

meta: Option<EntryResultMeta>entry: Option<Entry>headers: Vec<ChainHeader>

Methods

impl GetEntryResultItem[src]

pub fn new(
    maybe_entry_with_meta: Option<(&EntryWithMeta, Vec<ChainHeader>)>
) -> Self
[src]

Trait Implementations

impl Clone for GetEntryResultItem[src]

impl Debug for GetEntryResultItem[src]

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

impl<'a> From<&'a GetEntryResultItem> for JsonString[src]

impl From<GetEntryResultItem> for JsonString[src]

impl Serialize for GetEntryResultItem[src]

impl<'a> TryFrom<&'a JsonString> for GetEntryResultItem[src]

type Error = JsonError

The type returned in the event of a conversion error.

impl TryFrom<JsonString> for GetEntryResultItem[src]

type Error = JsonError

The type returned in the event of a conversion error.

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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>,