[TieredStorage] Make AccountMetaFlags and its fields public (#32004)

#### Problem
AccountMetaFlags and its fields are required to be public as the visibility of their get
functions generated by `bit_fields` are tied to the visibility of their fields, and the
get functions will later be used to support the TieredAccountMeta for AccountMeta.

#### Summary of Changes
Make AccountMetaFlags and its fields public
This commit is contained in:
Yueh-Hsuan Chiang 2023-06-07 11:37:56 -07:00 committed by GitHub
parent 74a9fc9641
commit b1db4ccc9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -7,13 +7,13 @@ use modular_bitfield::prelude::*;
#[bitfield(bits = 32)]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Eq, PartialEq)]
pub(crate) struct AccountMetaFlags {
pub struct AccountMetaFlags {
/// whether the account meta has rent epoch
has_rent_epoch: bool,
pub has_rent_epoch: bool,
/// whether the account meta has account hash
has_account_hash: bool,
pub has_account_hash: bool,
/// whether the account meta has write version
has_write_version: bool,
pub has_write_version: bool,
/// the reserved bits.
reserved: B29,
}