pub struct ExtraFieldsToSerialize<'a> {
pub lamports_per_signature: u64,
pub incremental_snapshot_persistence: Option<&'a BankIncrementalSnapshotPersistence>,
pub epoch_accounts_hash: Option<EpochAccountsHash>,
pub versioned_epoch_stakes: HashMap<u64, VersionedEpochStakes>,
}
Expand description
Extra fields that are serialized at the end of snapshots.
Note that this struct’s fields should stay synced with the fields in ExtraFieldsToDeserialize with the exception that new “extra fields” should be added to the deserialize struct a minor release before they are added to this one.
Fields§
§lamports_per_signature: u64
§incremental_snapshot_persistence: Option<&'a BankIncrementalSnapshotPersistence>
§epoch_accounts_hash: Option<EpochAccountsHash>
§versioned_epoch_stakes: HashMap<u64, VersionedEpochStakes>
Trait Implementations§
Source§impl<'a> Debug for ExtraFieldsToSerialize<'a>
impl<'a> Debug for ExtraFieldsToSerialize<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExtraFieldsToSerialize<'a>
impl<'a> RefUnwindSafe for ExtraFieldsToSerialize<'a>
impl<'a> Send for ExtraFieldsToSerialize<'a>
impl<'a> Sync for ExtraFieldsToSerialize<'a>
impl<'a> Unpin for ExtraFieldsToSerialize<'a>
impl<'a> UnwindSafe for ExtraFieldsToSerialize<'a>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more