nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
#[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 MatchCount {
    #[builder(into)]
    #[serde(rename = "value")]
    value: String,
    #[serde(rename = "documentCount")]
    document_count: i32,
}
impl MatchCount {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(value: impl Into<String>, document_count: i32) -> Self {
        Self::builder().value(value).document_count(document_count).build()
    }
    #[inline]
    pub fn value(&self) -> &str {
        &*self.value
    }
    #[inline]
    pub fn document_count(&self) -> i32 {
        self.document_count
    }
}