#[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 TypeSortOptions {
    #[serde(rename = "isDescending")]
    is_descending: bool,
    #[serde(rename = "field")]
    field: super::TypeSortField,
}
impl TypeSortOptions {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(is_descending: bool, field: super::TypeSortField) -> 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::TypeSortField {
        &self.field
    }
}
