pub struct TransactionSearchQuery {
pub status: Status,
pub medium: String,
pub name: Option<String>,
pub start: String,
pub end: String,
pub amt: f64,
pub limit: u32,
}Expand description
Query parameters for searching transactions.
Fields§
§status: StatusTransaction status (e.g., “created”, “successful”, “failed”, “expired”).
medium: StringPayment medium (e.g., “mobile money”, “orange money”).
name: Option<String>Name of the user performing the payment (optional).
start: StringStart date (yyyy-mm-dd) for transactions.
end: StringEnd date (yyyy-mm-dd) for transactions.
amt: f64Exact transaction amount.
limit: u32Maximum number of transactions to return
Trait Implementations§
Source§impl Clone for TransactionSearchQuery
impl Clone for TransactionSearchQuery
Source§fn clone(&self) -> TransactionSearchQuery
fn clone(&self) -> TransactionSearchQuery
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 TransactionSearchQuery
impl Debug for TransactionSearchQuery
Source§impl Default for TransactionSearchQuery
impl Default for TransactionSearchQuery
Source§fn default() -> TransactionSearchQuery
fn default() -> TransactionSearchQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TransactionSearchQuery
impl<'de> Deserialize<'de> for TransactionSearchQuery
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 Freeze for TransactionSearchQuery
impl RefUnwindSafe for TransactionSearchQuery
impl Send for TransactionSearchQuery
impl Sync for TransactionSearchQuery
impl Unpin for TransactionSearchQuery
impl UnwindSafe for TransactionSearchQuery
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