#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct SortOptions {
    #[serde(rename = "isDescending")]
    is_descending: bool,
    #[serde(rename = "field")]
    field: super::SortField,
}
impl SortOptions {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(is_descending: bool, field: super::SortField) -> Self {
        Self::builder().is_descending(is_descending).field(field).build()
    }
    #[inline]
    pub fn is_descending(&self) -> bool {
        self.is_descending
    }
    #[inline]
    pub fn field(&self) -> &super::SortField {
        &self.field
    }
}
