square_api_client/models/invoice_sort.rs
1//! Model struct for InvoiceSort type.
2
3use serde::Serialize;
4
5use super::enums::{InvoiceSortField, SortOrder};
6
7/// Identifies the sort field and sort order.
8#[derive(Clone, Debug, Default, Eq, PartialEq, Serialize)]
9pub struct InvoiceSort {
10 /// The field to use for sorting.
11 pub field: InvoiceSortField,
12 /// The order to use for sorting the results.
13 pub order: Option<SortOrder>,
14}