Skip to main content

nominal_api_conjure/conjure/objects/scout/compute/api/
request_in_progress.rs

1/// Summed across the request's active queries when it fans out into more than one.
2#[derive(
3    Debug,
4    Clone,
5    conjure_object::serde::Serialize,
6    conjure_object::serde::Deserialize,
7    PartialEq,
8    Eq,
9    PartialOrd,
10    Ord,
11    Hash,
12    Copy
13)]
14#[serde(crate = "conjure_object::serde")]
15#[conjure_object::private::staged_builder::staged_builder]
16#[builder(crate = conjure_object::private::staged_builder, update, inline)]
17pub struct RequestInProgress {
18    #[serde(rename = "readRows")]
19    read_rows: conjure_object::SafeLong,
20    #[serde(rename = "totalRowsApprox")]
21    total_rows_approx: conjure_object::SafeLong,
22}
23impl RequestInProgress {
24    /// Constructs a new instance of the type.
25    #[inline]
26    pub fn new(
27        read_rows: conjure_object::SafeLong,
28        total_rows_approx: conjure_object::SafeLong,
29    ) -> Self {
30        Self::builder().read_rows(read_rows).total_rows_approx(total_rows_approx).build()
31    }
32    #[inline]
33    pub fn read_rows(&self) -> conjure_object::SafeLong {
34        self.read_rows
35    }
36    /// May grow while a query runs as new sources to process become known.
37    #[inline]
38    pub fn total_rows_approx(&self) -> conjure_object::SafeLong {
39        self.total_rows_approx
40    }
41}