pub enum Status {
Success,
Abandoned,
Failed,
}
Expand description
Represents the status of a transaction.
The Status
enum defines the possible status values for a transaction,
indicating whether the transaction was successful, abandoned, or failed.
Variants
Success
: Represents a successful transaction.Abandoned
: Represents an abandoned transaction.Failed
: Represents a failed transaction.
Examples
use paystack::Status;
let success_status = Status::Success;
let abandoned_status = Status::Abandoned;
let failed_status = Status::Failed;
println!("{:?}", success_status); // Prints: Success
The example demonstrates the usage of the Status
enum, creating instances of each variant
and printing their debug representation.
Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Status
impl<'de> Deserialize<'de> for Status
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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