[][src]Struct private_currency::storage::Schema

pub struct Schema<T> { /* fields omitted */ }

Schema for the private currency service.

Methods

impl<T: AsRef<dyn Snapshot>> Schema<T>
[src]

Creates a schema based on the storage view.

Returns the state hash of the service.

The state hash directly commits to a single table of the service, wallets. Other Merkelized tables (wallet histories and unaccepted transfers) are connected to the state via fields in Wallet records.

Returns the mapping of public keys to wallets.

Loads a wallet with the specified public_key.

Returns all unaccepted incoming transfers for the account associated with the given public key.

Returns all history entries for the specified account.

Returns a past balance of a wallet.

Trait Implementations

impl<T: Debug> Debug for Schema<T>
[src]

Auto Trait Implementations

impl<T> Send for Schema<T> where
    T: Send

impl<T> Sync for Schema<T> where
    T: Sync

Blanket Implementations

impl<T> From for T
[src]

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> Erased for T

impl<T> Same for T

Should always be Self