Struct solana_program::last_restart_slot::LastRestartSlot
source · #[repr(C)]pub struct LastRestartSlot {
pub last_restart_slot: Slot,
}
Fields§
§last_restart_slot: Slot
The last restart Slot
.
Trait Implementations§
source§impl Clone for LastRestartSlot
impl Clone for LastRestartSlot
source§impl Debug for LastRestartSlot
impl Debug for LastRestartSlot
source§impl Default for LastRestartSlot
impl Default for LastRestartSlot
source§fn default() -> LastRestartSlot
fn default() -> LastRestartSlot
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LastRestartSlot
impl<'de> Deserialize<'de> for LastRestartSlot
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for LastRestartSlot
impl PartialEq for LastRestartSlot
source§fn eq(&self, other: &LastRestartSlot) -> bool
fn eq(&self, other: &LastRestartSlot) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LastRestartSlot
impl Serialize for LastRestartSlot
source§impl Sysvar for LastRestartSlot
impl Sysvar for LastRestartSlot
source§fn from_account_info(
account_info: &AccountInfo<'_>
) -> Result<Self, ProgramError>
fn from_account_info( account_info: &AccountInfo<'_> ) -> Result<Self, ProgramError>
Deserializes the sysvar from its
AccountInfo
. Read moresource§fn to_account_info(&self, account_info: &mut AccountInfo<'_>) -> Option<()>
fn to_account_info(&self, account_info: &mut AccountInfo<'_>) -> Option<()>
Serializes the sysvar to
AccountInfo
. Read moresource§impl SysvarId for LastRestartSlot
impl SysvarId for LastRestartSlot
impl Eq for LastRestartSlot
impl StructuralEq for LastRestartSlot
impl StructuralPartialEq for LastRestartSlot
Auto Trait Implementations§
impl RefUnwindSafe for LastRestartSlot
impl Send for LastRestartSlot
impl Sync for LastRestartSlot
impl Unpin for LastRestartSlot
impl UnwindSafe for LastRestartSlot
Blanket Implementations§
source§impl<T> AbiEnumVisitor for Twhere
T: Serialize + AbiExample + ?Sized,
impl<T> AbiEnumVisitor for Twhere T: Serialize + AbiExample + ?Sized,
default fn visit_for_abi( &self, digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
source§impl<T> AbiEnumVisitor for Twhere
T: Serialize + ?Sized,
impl<T> AbiEnumVisitor for Twhere T: Serialize + ?Sized,
default fn visit_for_abi( &self, _digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more