[][src]Enum solana_storage_program::storage_contract::StorageContract

pub enum StorageContract {
    Uninitialized,
    ValidatorStorage {
        owner: Pubkey,
        segment: u64,
        hash: Hash,
        lockout_validations: BTreeMap<u64, BTreeMap<Pubkey, Vec<ProofStatus>>>,
        credits: Credits,
    },
    ArchiverStorage {
        owner: Pubkey,
        proofs: BTreeMap<u64, Vec<Proof>>,
        validations: BTreeMap<u64, BTreeMap<Pubkey, Vec<ProofStatus>>>,
        credits: Credits,
    },
    RewardsPool,
}

Variants

Uninitialized
ValidatorStorage

Fields of ValidatorStorage

owner: Pubkeysegment: u64hash: Hashlockout_validations: BTreeMap<u64, BTreeMap<Pubkey, Vec<ProofStatus>>>credits: Credits
ArchiverStorage

Fields of ArchiverStorage

owner: Pubkeyproofs: BTreeMap<u64, Vec<Proof>>validations: BTreeMap<u64, BTreeMap<Pubkey, Vec<ProofStatus>>>credits: Credits
RewardsPool

Trait Implementations

impl Debug for StorageContract[src]

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

impl Serialize for StorageContract[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, 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, 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>,