Skip to main content

nominal_api_conjure/conjure/objects/ingest/api/
count_ingest_jobs_response.rs

1#[derive(
2    Debug,
3    Clone,
4    conjure_object::serde::Serialize,
5    conjure_object::serde::Deserialize,
6    PartialEq,
7    Eq,
8    PartialOrd,
9    Ord,
10    Hash,
11    Copy
12)]
13#[serde(crate = "conjure_object::serde")]
14#[conjure_object::private::staged_builder::staged_builder]
15#[builder(crate = conjure_object::private::staged_builder, update, inline)]
16pub struct CountIngestJobsResponse {
17    #[serde(rename = "count")]
18    count: conjure_object::SafeLong,
19}
20impl CountIngestJobsResponse {
21    /// Constructs a new instance of the type.
22    #[inline]
23    pub fn new(count: conjure_object::SafeLong) -> Self {
24        Self::builder().count(count).build()
25    }
26    /// The exact number of matching ingest jobs visible to the caller.
27    #[inline]
28    pub fn count(&self) -> conjure_object::SafeLong {
29        self.count
30    }
31}