pub struct CommitDiffArgs {
pub diff: Vec<u8>,
pub nonce: u64,
pub lamports: u64,
pub allow_undelegation: bool,
}Fields§
§diff: Vec<u8>The account diff
SAFETY: this must be the FIRST field in the struct because the serialized format
is manually split: the diff (with Borsh Vec prefix) followed by the fixed-size
fields. The processor uses data.split_at(data.len() - SIZE_COMMIT_DIFF_ARGS_WITHOUT_DIFF)
to separate them during deserialization.
nonce: u64“Nonce” of an account. Updates are submitted historically and nonce incremented by 1 Deprecated: The ephemeral slot at which the account data is committed
lamports: u64The lamports that the account holds in the ephemeral validator
allow_undelegation: boolWhether the account can be undelegated after the commit completes
Trait Implementations§
Source§impl BorshSerialize for CommitDiffArgs
impl BorshSerialize for CommitDiffArgs
Source§impl Debug for CommitDiffArgs
impl Debug for CommitDiffArgs
Source§impl Default for CommitDiffArgs
impl Default for CommitDiffArgs
Source§fn default() -> CommitDiffArgs
fn default() -> CommitDiffArgs
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommitDiffArgs
impl RefUnwindSafe for CommitDiffArgs
impl Send for CommitDiffArgs
impl Sync for CommitDiffArgs
impl Unpin for CommitDiffArgs
impl UnsafeUnpin for CommitDiffArgs
impl UnwindSafe for CommitDiffArgs
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
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