#[repr(u8)]pub enum OnApplicationComplete {
NoOp = 0,
OptIn = 1,
CloseOut = 2,
ClearState = 3,
UpdateApplication = 4,
DeleteApplication = 5,
}
Expand description
On-completion actions for app transactions.
These values define what additional actions occur with the transaction.
Variants§
NoOp = 0
NoOp indicates that an app transaction will simply call its approval program without any additional action.
OptIn = 1
OptIn indicates that an app transaction will allocate some local state for the app in the sender’s account.
CloseOut = 2
CloseOut indicates that an app transaction will deallocate some local state for the app from the user’s account.
ClearState = 3
ClearState is similar to CloseOut, but may never fail. This allows users to reclaim their minimum balance from an app they no longer wish to opt in to.
UpdateApplication = 4
UpdateApplication indicates that an app transaction will update the approval program and clear state program for the app.
DeleteApplication = 5
DeleteApplication indicates that an app transaction will delete the app parameters for the app from the creator’s balance record.
Trait Implementations§
Source§impl Clone for OnApplicationComplete
impl Clone for OnApplicationComplete
Source§fn clone(&self) -> OnApplicationComplete
fn clone(&self) -> OnApplicationComplete
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more