pub struct EncodedStateAccount(/* private fields */);Expand description
Canonical 65-byte representation of a StateAccount: the discriminator
byte followed by manager’s and reclaim_authority’s bytes.
┌──── discriminator
┌┬───────────────────────────────┬───────────────────────────────┐
││ manager │ reclaim_authority │
└┴───────────────────────────────┴───────────────────────────────┘
0 1 33 65Implementations§
Source§impl EncodedStateAccount
impl EncodedStateAccount
pub const SIZE: usize = 65
Sourcepub const DISCRIMINATOR: u8
pub const DISCRIMINATOR: u8
Single-byte account discriminator. See crate::SettlementAccount.
Trait Implementations§
Source§impl Clone for EncodedStateAccount
impl Clone for EncodedStateAccount
Source§fn clone(&self) -> EncodedStateAccount
fn clone(&self) -> EncodedStateAccount
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EncodedStateAccount
impl Debug for EncodedStateAccount
Source§impl Deref for EncodedStateAccount
impl Deref for EncodedStateAccount
impl Eq for EncodedStateAccount
Source§impl From<EncodedStateAccount> for [u8; 65]
impl From<EncodedStateAccount> for [u8; 65]
Source§fn from(encoded: EncodedStateAccount) -> Self
fn from(encoded: EncodedStateAccount) -> Self
Converts to this type from the input type.
Source§impl From<StateAccount> for EncodedStateAccount
impl From<StateAccount> for EncodedStateAccount
Source§fn from(account: StateAccount) -> Self
fn from(account: StateAccount) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EncodedStateAccount
impl PartialEq for EncodedStateAccount
impl StructuralPartialEq for EncodedStateAccount
Source§impl TryFrom<EncodedStateAccount> for StateAccount
impl TryFrom<EncodedStateAccount> for StateAccount
Source§type Error = ProgramError
type Error = ProgramError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for EncodedStateAccount
impl RefUnwindSafe for EncodedStateAccount
impl Send for EncodedStateAccount
impl Sync for EncodedStateAccount
impl Unpin for EncodedStateAccount
impl UnsafeUnpin for EncodedStateAccount
impl UnwindSafe for EncodedStateAccount
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