Enum hdk::prelude::entry::GetStrategy[][src]

pub enum GetStrategy {
    Latest,
    Content,
}

Describes the get call and what information the caller is concerned about. This helps the subconscious avoid unnecessary network calls.

Variants

Latest

Will try to get the latest metadata but fallback to the cache if none is found. Does not go to the network if you are an authority for the data.

Content

Will try to get the content locally but go to the network if it is not found. Does not go to the network if you are an authority for the data.

Trait Implementations

impl Clone for GetStrategy[src]

impl Copy for GetStrategy[src]

impl Debug for GetStrategy[src]

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

impl PartialEq<GetStrategy> for GetStrategy[src]

impl Serialize for GetStrategy[src]

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