pub enum AccountLifecycle {
Existing,
Init,
Realloc,
Close,
}Expand description
Lifecycle role an account plays in one instruction.
Closes the audit’s ST2 schema-metadata gap: clients consuming the manifest need to know which accounts are created/closed/resized so they can synthesize correct builder UX (prompt for payer, compute required rent, wire a close-recipient, etc.).
Variants§
Existing
Account exists before the instruction and is only read/mutated.
Init
Account is created fresh this instruction (#[account(init, ...)]).
Realloc
Account data is resized this instruction.
Close
Account is drained and reassigned to the System Program.
Implementations§
Trait Implementations§
Source§impl Clone for AccountLifecycle
impl Clone for AccountLifecycle
Source§fn clone(&self) -> AccountLifecycle
fn clone(&self) -> AccountLifecycle
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 AccountLifecycle
impl Debug for AccountLifecycle
Source§impl PartialEq for AccountLifecycle
impl PartialEq for AccountLifecycle
Source§fn eq(&self, other: &AccountLifecycle) -> bool
fn eq(&self, other: &AccountLifecycle) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AccountLifecycle
impl Eq for AccountLifecycle
impl StructuralPartialEq for AccountLifecycle
Auto Trait Implementations§
impl Freeze for AccountLifecycle
impl RefUnwindSafe for AccountLifecycle
impl Send for AccountLifecycle
impl Sync for AccountLifecycle
impl Unpin for AccountLifecycle
impl UnsafeUnpin for AccountLifecycle
impl UnwindSafe for AccountLifecycle
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