#[derive(
Debug,
Clone,
conjure_object::serde::Serialize,
conjure_object::serde::Deserialize,
PartialEq,
Eq,
PartialOrd,
Ord,
Hash,
Copy
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct StringPropertySummary {
#[serde(rename = "documentCount")]
document_count: i32,
#[serde(rename = "distinctValueCount")]
distinct_value_count: i32,
}
impl StringPropertySummary {
#[inline]
pub fn new(document_count: i32, distinct_value_count: i32) -> Self {
Self::builder()
.document_count(document_count)
.distinct_value_count(distinct_value_count)
.build()
}
#[inline]
pub fn document_count(&self) -> i32 {
self.document_count
}
#[inline]
pub fn distinct_value_count(&self) -> i32 {
self.distinct_value_count
}
}