Struct hdk::prelude::GetOptions[][src]

pub struct GetOptions {
    pub strategy: GetStrategy,
}

Options for controlling how get works

Fields

strategy: GetStrategy

If this is true the get call will wait for the latest data before returning. If it is false you will get whatever is locally available on this conductor.

Implementations

impl GetOptions[src]

pub fn latest() -> GetOptions[src]

This will get you the content with latest metadata if it can otherwise it will fallback to what you have cached locally.

This call is guaranteed to not go to the network if you are an authority for this hash.

pub fn content() -> GetOptions[src]

Gets the content but does not try to get the latest metadata. This will save a network call if the entry is local (cached, authored or integrated).

This will fallback to the network if the content is not found locally

Trait Implementations

impl Clone for GetOptions[src]

impl Debug for GetOptions[src]

impl Default for GetOptions[src]

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

impl PartialEq<GetOptions> for GetOptions[src]

impl Serialize for GetOptions[src]

impl StructuralPartialEq for GetOptions[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>,