#[repr(C)]pub struct RecordData {
pub version: u8,
pub authority: Pubkey,
}Expand description
Header type for recorded account data
Fields§
§version: u8Struct version, allows for upgrades to the program
The account allowed to update the data
Implementations§
Source§impl RecordData
impl RecordData
Sourcepub const CURRENT_VERSION: u8 = 1u8
pub const CURRENT_VERSION: u8 = 1u8
Version to fill in on new created accounts
Sourcepub const WRITABLE_START_INDEX: usize = 33usize
pub const WRITABLE_START_INDEX: usize = 33usize
Start of writable account data, after version and authority
Trait Implementations§
Source§impl Clone for RecordData
impl Clone for RecordData
Source§fn clone(&self) -> RecordData
fn clone(&self) -> RecordData
Returns a duplicate 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 Debug for RecordData
impl Debug for RecordData
Source§impl IsInitialized for RecordData
impl IsInitialized for RecordData
Source§fn is_initialized(&self) -> bool
fn is_initialized(&self) -> bool
Is initialized
Source§impl PartialEq for RecordData
impl PartialEq for RecordData
impl Copy for RecordData
impl Pod for RecordData
impl StructuralPartialEq for RecordData
Auto Trait Implementations§
impl Freeze for RecordData
impl RefUnwindSafe for RecordData
impl Send for RecordData
impl Sync for RecordData
impl Unpin for RecordData
impl UnwindSafe for RecordData
Blanket Implementations§
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<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§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.Source§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.