pub struct CommitStateFromBufferArgs {
pub nonce: u64,
pub lamports: u64,
pub allow_undelegation: bool,
}Fields§
§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 BorshDeserialize for CommitStateFromBufferArgs
impl BorshDeserialize for CommitStateFromBufferArgs
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl Debug for CommitStateFromBufferArgs
impl Debug for CommitStateFromBufferArgs
Source§impl Default for CommitStateFromBufferArgs
impl Default for CommitStateFromBufferArgs
Source§fn default() -> CommitStateFromBufferArgs
fn default() -> CommitStateFromBufferArgs
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommitStateFromBufferArgs
impl RefUnwindSafe for CommitStateFromBufferArgs
impl Send for CommitStateFromBufferArgs
impl Sync for CommitStateFromBufferArgs
impl Unpin for CommitStateFromBufferArgs
impl UnsafeUnpin for CommitStateFromBufferArgs
impl UnwindSafe for CommitStateFromBufferArgs
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