pub struct TransactionParams {
pub from_booking_datetime: Option<DateTime<Utc>>,
pub to_booking_datetime: Option<DateTime<Utc>>,
pub page_size: Option<u32>,
pub forward_paging_token: Option<String>,
}
Expand description
Optional parameters to fetch transactions.
Fields§
§from_booking_datetime: Option<DateTime<Utc>>
ISO 8601-compatible date-time string representing the earliest date-time from which transactions will be queried. Timezone must not be set. Set time to to 00:00:00 for Date-only queries.
to_booking_datetime: Option<DateTime<Utc>>
ISO 8601-compatible date-time string representing the latest date-time up to which transactions will be queried. Timezone must not be set. Set time to 00:00:00 for Date-only queries.
page_size: Option<u32>
Number of transactions to be returned per each page.
forward_paging_token: Option<String>
Paging token used to retrieve the next page of data. Tokens are available in the links located in the _links object.
Implementations§
Source§impl TransactionParams
Implementation of the TransactionParams.
impl TransactionParams
Implementation of the TransactionParams.
Sourcepub fn with_from_booking_datetime(self, datetime: DateTime<Utc>) -> Self
pub fn with_from_booking_datetime(self, datetime: DateTime<Utc>) -> Self
Sets fromBookingDateTime parameter.
Sourcepub fn with_to_booking_datetime(self, datetime: DateTime<Utc>) -> Self
pub fn with_to_booking_datetime(self, datetime: DateTime<Utc>) -> Self
Sets toBookingDateTime parameter.
Sourcepub fn with_page_size(self, page_size: u32) -> Self
pub fn with_page_size(self, page_size: u32) -> Self
Sets pageSize parameter.
Sourcepub fn with_forward_paging_token(self, token: String) -> Self
pub fn with_forward_paging_token(self, token: String) -> Self
Sets forwardPagingToken parameter.
Trait Implementations§
Source§impl Debug for TransactionParams
impl Debug for TransactionParams
Source§impl Default for TransactionParams
impl Default for TransactionParams
Source§fn default() -> TransactionParams
fn default() -> TransactionParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TransactionParams
impl RefUnwindSafe for TransactionParams
impl Send for TransactionParams
impl Sync for TransactionParams
impl Unpin for TransactionParams
impl UnwindSafe for TransactionParams
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