pub enum RecordInstruction {
Initialize,
Write {
offset: u64,
data: Vec<u8>,
},
SetAuthority,
CloseAccount,
}Expand description
Instructions supported by the program
Variants§
Initialize
Create a new record
Accounts expected by this instruction:
[writable]Record account, must be uninitialized[]Record authority
Write
Write to the provided record account
Accounts expected by this instruction:
[writable]Record account, must be previously initialized[signer]Current record authority
Fields
SetAuthority
Update the authority of the provided record account
Accounts expected by this instruction:
[writable]Record account, must be previously initialized[signer]Current record authority[]New record authority
CloseAccount
Close the provided record account, draining lamports to recipient account
Accounts expected by this instruction:
[writable]Record account, must be previously initialized[signer]Record authority[]Receiver of account lamports
Trait Implementations§
Source§impl BorshDeserialize for RecordInstruction
impl BorshDeserialize for RecordInstruction
Source§impl BorshSerialize for RecordInstruction
impl BorshSerialize for RecordInstruction
Source§impl Clone for RecordInstruction
impl Clone for RecordInstruction
Source§fn clone(&self) -> RecordInstruction
fn clone(&self) -> RecordInstruction
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 RecordInstruction
impl Debug for RecordInstruction
Source§impl PartialEq for RecordInstruction
impl PartialEq for RecordInstruction
impl StructuralPartialEq for RecordInstruction
Auto Trait Implementations§
impl Freeze for RecordInstruction
impl RefUnwindSafe for RecordInstruction
impl Send for RecordInstruction
impl Sync for RecordInstruction
impl Unpin for RecordInstruction
impl UnwindSafe for RecordInstruction
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more