pub struct List<'a, C>where
C: Inner,{ /* private fields */ }Expand description
A request to retrieve a list of transactions from the Monzo API
Use the builder-style methods to set optional fields on the request
Implementations§
Source§impl<'a, C> Request<'a, C>where
C: Inner,
impl<'a, C> Request<'a, C>where
C: Inner,
Sourcepub fn since(self, datetime: DateTime<Utc>) -> Self
pub fn since(self, datetime: DateTime<Utc>) -> Self
Only return transactions which occurred after the given DateTime
Sourcepub fn since_transaction(self, transaction_id: String) -> Self
pub fn since_transaction(self, transaction_id: String) -> Self
Only return transactions which occurred after the given transaction.
This can be used for paginating.
Sourcepub const fn before(self, datetime: DateTime<Utc>) -> Self
pub const fn before(self, datetime: DateTime<Utc>) -> Self
Only return transactions which occurred before a given DateTime
Sourcepub const fn limit(self, limit: u16) -> Self
pub const fn limit(self, limit: u16) -> Self
Set the maximum number of transactions to be returned
Sourcepub const fn expand_merchant(self) -> Self
pub const fn expand_merchant(self) -> Self
Optionally expand the merchant field from an id string into a struct container merchant details
Sourcepub async fn send(self) -> Result<Vec<Transaction>>
pub async fn send(self) -> Result<Vec<Transaction>>
Consume the request and return the list of Transactions
Trait Implementations§
Auto Trait Implementations§
impl<'a, C> Freeze for Request<'a, C>
impl<'a, C> RefUnwindSafe for Request<'a, C>where
C: RefUnwindSafe,
impl<'a, C> Send for Request<'a, C>
impl<'a, C> Sync for Request<'a, C>
impl<'a, C> Unpin for Request<'a, C>
impl<'a, C> UnwindSafe for Request<'a, C>where
C: RefUnwindSafe,
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