1 2 3 4 5 6 7 8 9 10 11 12 13 14
//! Model struct for SearchCustomersQuery type
use serde::Serialize;
use super::{SearchCustomersFilter, SearchCustomersSort};
/// Contains query criteria for the search.
#[derive(Clone, Debug, Default, Eq, PartialEq, Serialize)]
pub struct SearchCustomersQuery {
/// Criteria to filter results by.
pub filter: Option<SearchCustomersFilter>,
/// Criteria to sort results by.
pub sort: Option<SearchCustomersSort>,
}