1
2
3
4
5
6
7
8
9
10
11
12
mod client;
mod error;
mod response;

// public re-exports

// mapping results to our custom error type
pub type PaystackResult<T> = std::result::Result<T, error::PaystackError>;
pub use client::{PaystackClient, TransactionBody};
pub use error::PaystackError;
pub use error::RequestNotSuccessful;
pub use response::TransactionResponse;