#[repr(C)]pub struct Store {Show 20 fields
pub version: u8,
pub bump: [u8; 1],
pub key_seed: [u8; 32],
pub key: [u8; 32],
pub padding_0: [u8; 6],
pub role: RoleStore,
pub authority: Pubkey,
pub next_authority: Pubkey,
pub token_map: Pubkey,
pub disabled_features: DisabledFeatures,
pub padding_1: [u8; 4],
pub last_restarted_slot: u64,
pub treasury: Treasury,
pub amount: Amounts,
pub padding_2: [u8; 8],
pub factor: Factors,
pub address: Addresses,
pub gt: GtState,
pub market_config_permissions: MarketConfigPermissions,
pub reserved: [u8; 992],
}Expand description
Data Store.
Fields§
§version: u8§bump: [u8; 1]§key_seed: [u8; 32]§key: [u8; 32]§padding_0: [u8; 6]§role: RoleStore§token_map: Pubkey§disabled_features: DisabledFeatures§padding_1: [u8; 4]§last_restarted_slot: u64§treasury: Treasury§amount: Amounts§padding_2: [u8; 8]§factor: Factors§address: Addresses§gt: GtState§market_config_permissions: MarketConfigPermissions§reserved: [u8; 992]Trait Implementations§
Source§impl AccountDeserialize for Store
impl AccountDeserialize for Store
Source§fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
Deserializes previously initialized account data. Should fail for all
uninitialized accounts, where the bytes are zeroed. Implementations
should be unique to a particular account type so that one can never
successfully deserialize the data of one account type into another.
For example, if the SPL token program were to implement this trait,
it should be impossible to deserialize a
Mint account into a token
Account.Source§fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
Deserializes account data without checking the account discriminator.
This should only be used on account initialization, when the bytes of
the account are zeroed.
Source§impl Discriminator for Store
impl Discriminator for Store
Source§const DISCRIMINATOR: &'static [u8]
const DISCRIMINATOR: &'static [u8]
Discriminator slice. Read more
impl Copy for Store
impl Pod for Store
impl ZeroCopy for Store
Auto Trait Implementations§
impl Freeze for Store
impl RefUnwindSafe for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl UnwindSafe for Store
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.