Struct bitoku_sdk_agent::BookKeeper
source · #[repr(C)]pub struct BookKeeper { /* private fields */ }Trait Implementations§
source§impl AccountDeserialize for BookKeeper
impl AccountDeserialize for BookKeeper
source§fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
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.source§fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
Deserializes account data without checking the account discriminator.
This should only be used on account initialization, when the bytes of
the account are zeroed.
source§impl Clone for BookKeeper
impl Clone for BookKeeper
source§fn clone(&self) -> BookKeeper
fn clone(&self) -> BookKeeper
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 moresource§impl Discriminator for BookKeeper
impl Discriminator for BookKeeper
fn discriminator() -> [u8; 8]
impl Copy for BookKeeper
impl Pod for BookKeeper
impl ZeroCopy for BookKeeper
Auto Trait Implementations§
impl RefUnwindSafe for BookKeeper
impl Send for BookKeeper
impl Sync for BookKeeper
impl Unpin for BookKeeper
impl UnwindSafe for BookKeeper
Blanket Implementations§
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.