/// Summed across the request's active queries when it fans out into more than one.
#[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 RequestInProgress {
    #[serde(rename = "readRows")]
    read_rows: conjure_object::SafeLong,
    #[serde(rename = "totalRowsApprox")]
    total_rows_approx: conjure_object::SafeLong,
}
impl RequestInProgress {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        read_rows: conjure_object::SafeLong,
        total_rows_approx: conjure_object::SafeLong,
    ) -> Self {
        Self::builder().read_rows(read_rows).total_rows_approx(total_rows_approx).build()
    }
    #[inline]
    pub fn read_rows(&self) -> conjure_object::SafeLong {
        self.read_rows
    }
    /// May grow while a query runs as new sources to process become known.
    #[inline]
    pub fn total_rows_approx(&self) -> conjure_object::SafeLong {
        self.total_rows_approx
    }
}
