Struct switchboard_solana::prelude::ProgramData
pub struct ProgramData {
pub slot: u64,
pub upgrade_authority_address: Option<Pubkey>,
}
Fields§
§slot: u64
Trait Implementations§
§impl AccountDeserialize for ProgramData
impl AccountDeserialize for ProgramData
§fn try_deserialize(buf: &mut &[u8]) -> Result<ProgramData, Error>
fn try_deserialize(buf: &mut &[u8]) -> Result<ProgramData, Error>
Deserializes previously initialized account data. Should fail for all
uninitialized accounts, where the bytes are zeroed. Implementations
should be unique to a particular account type so that one can never
successfully deserialize the data of one account type into another.
For example, if the SPL token program were to implement this trait,
it should be impossible to deserialize a
Mint
account into a token
Account
.§fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<ProgramData, Error>
fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<ProgramData, Error>
Deserializes account data without checking the account discriminator.
This should only be used on account initialization, when the bytes of
the account are zeroed.
§impl AccountSerialize for ProgramData
impl AccountSerialize for ProgramData
§impl Clone for ProgramData
impl Clone for ProgramData
§fn clone(&self) -> ProgramData
fn clone(&self) -> ProgramData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for ProgramData
impl Send for ProgramData
impl Sync for ProgramData
impl Unpin for ProgramData
impl UnwindSafe for ProgramData
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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