#[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 PropertyValueWithCount {
#[serde(rename = "propertyValue")]
property_value: super::super::super::api::PropertyValue,
#[serde(rename = "documentCount")]
document_count: i32,
}
impl PropertyValueWithCount {
#[inline]
pub fn new(
property_value: super::super::super::api::PropertyValue,
document_count: i32,
) -> Self {
Self::builder()
.property_value(property_value)
.document_count(document_count)
.build()
}
#[inline]
pub fn property_value(&self) -> &super::super::super::api::PropertyValue {
&self.property_value
}
#[inline]
pub fn document_count(&self) -> i32 {
self.document_count
}
}