Enum paystack::ActionType
source · pub enum ActionType {
Process,
View,
Print,
}
Expand description
Represents the different action the Terminal needs to perform.
Variants
Process
: Process action.View
: View action.Print
: Print action.
Examples
use paystack::ActionType;
let process_action = ActionType::Process;
let print_action = ActionType::Print;
let view_action = ActionType::View;
println!("{:?}", process_action); // Prints: process
Variants§
Process
Process the event. Valid for all event types.
View
View the event. Valid for only Invoice event type.
Print the event. Valid for only Transaction event type.
Trait Implementations§
source§impl Clone for ActionType
impl Clone for ActionType
source§fn clone(&self) -> ActionType
fn clone(&self) -> ActionType
Returns a copy 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 ActionType
impl Debug for ActionType
source§impl Default for ActionType
impl Default for ActionType
source§fn default() -> ActionType
fn default() -> ActionType
Returns the “default value” for a type. Read more
source§impl Display for ActionType
impl Display for ActionType
Auto Trait Implementations§
impl RefUnwindSafe for ActionType
impl Send for ActionType
impl Sync for ActionType
impl Unpin for ActionType
impl UnwindSafe for ActionType
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