Skip to main content

nominal_api/conjure/objects/scout/catalog/
skip_rows_config.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 SkipRowsConfig {
17    #[serde(rename = "headerRowIndex")]
18    header_row_index: i32,
19    #[serde(rename = "dataStartRowIndex")]
20    data_start_row_index: i32,
21}
22impl SkipRowsConfig {
23    /// Constructs a new instance of the type.
24    #[inline]
25    pub fn new(header_row_index: i32, data_start_row_index: i32) -> Self {
26        Self::builder()
27            .header_row_index(header_row_index)
28            .data_start_row_index(data_start_row_index)
29            .build()
30    }
31    #[inline]
32    pub fn header_row_index(&self) -> i32 {
33        self.header_row_index
34    }
35    #[inline]
36    pub fn data_start_row_index(&self) -> i32 {
37        self.data_start_row_index
38    }
39}