pub enum CriticalCommands {
CreateUser {
name: String,
},
Deposit {
name: String,
amount: f64,
},
Withdraw {
name: String,
amount: f64,
},
Transfer {
from: String,
to: String,
amount: f64,
},
Pay {
name: String,
amount: f64,
},
Refund {
name: String,
lamport: i64,
node: String,
},
FileSnapshot,
SyncSnapshot,
}
Expand description
Critical commands that can be executed on our site
Variants§
CreateUser
Create a new user account
Deposit
Deposit money into an account
Withdraw
Withdraw money from an account
Transfer
Transfer money between accounts
Pay
Make a payment
Refund
Process a refund
FileSnapshot
Request a snapshot to save as a JSON
SyncSnapshot
Request a snapshot to update our database
Trait Implementations§
Source§impl Clone for CriticalCommands
impl Clone for CriticalCommands
Source§fn clone(&self) -> CriticalCommands
fn clone(&self) -> CriticalCommands
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 CriticalCommands
impl Debug for CriticalCommands
Source§impl PartialEq for CriticalCommands
impl PartialEq for CriticalCommands
impl StructuralPartialEq for CriticalCommands
Auto Trait Implementations§
impl Freeze for CriticalCommands
impl RefUnwindSafe for CriticalCommands
impl Send for CriticalCommands
impl Sync for CriticalCommands
impl Unpin for CriticalCommands
impl UnwindSafe for CriticalCommands
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,
§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.