pub struct StateAccount {
pub manager: Pubkey,
pub reclaim_authority: Pubkey,
}Expand description
Idiomatic representation of the state PDA’s body.
Fields§
§manager: PubkeyThe account authorized to add and remove solvers, as well as reassign all the roles in the settlement program.
The account authorized to reclaim rent for buffers. It must sign the reclaim and chooses where the rent goes.
Trait Implementations§
Source§impl Clone for StateAccount
impl Clone for StateAccount
Source§fn clone(&self) -> StateAccount
fn clone(&self) -> StateAccount
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 StateAccount
impl Debug for StateAccount
impl Eq for StateAccount
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 From<StateAccount> for [u8; 65]
impl From<StateAccount> for [u8; 65]
Source§fn from(account: StateAccount) -> Self
fn from(account: StateAccount) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StateAccount
impl PartialEq for StateAccount
impl StructuralPartialEq for StateAccount
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 StateAccount
impl RefUnwindSafe for StateAccount
impl Send for StateAccount
impl Sync for StateAccount
impl Unpin for StateAccount
impl UnsafeUnpin for StateAccount
impl UnwindSafe for StateAccount
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