pub enum SplitType {
Percentage,
Flat,
}
Expand description
Represents the type of transaction split.
The SplitType
enum defines the possible types of transaction splits that can be created,
indicating whether the split is based on a percentage or a flat amount.
Variants
Percentage
: A split based on a percentage.Flat
: A split based on an amount.
Examples
use paystack::SplitType;
let percentage_split = SplitType::Percentage;
let flat_split = SplitType::Flat;
println!("{:?}", percentage_split); // Prints: Percentage
The example demonstrates the usage of the SplitType
enum, creating instances of each variant
and printing their debug representation.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SplitType
impl Send for SplitType
impl Sync for SplitType
impl Unpin for SplitType
impl UnwindSafe for SplitType
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