Struct cosmwasm_storage::ReadonlySingleton[][src]

pub struct ReadonlySingleton<'a, T> where
    T: Serialize + DeserializeOwned
{ /* fields omitted */ }
Expand description

ReadonlySingleton only requires a Storage and exposes only the methods of Singleton that don’t modify state.

Implementations

load will return an error if no data is set at the given key, or on parse error

may_load will parse the data stored at the key if present, returns Ok(None) if no data there. returns an error on issues parsing

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.