nominal_api/conjure/objects/datasource/api/
get_data_scope_bounds_request.rs1#[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)]
12#[serde(crate = "conjure_object::serde")]
13#[conjure_object::private::staged_builder::staged_builder]
14#[builder(crate = conjure_object::private::staged_builder, update, inline)]
15pub struct GetDataScopeBoundsRequest {
16 #[serde(rename = "dataSourceRid")]
17 data_source_rid: conjure_object::ResourceIdentifier,
18 #[builder(default, map(key(type = String, into), value(type = String, into)))]
19 #[serde(
20 rename = "tags",
21 skip_serializing_if = "std::collections::BTreeMap::is_empty",
22 default
23 )]
24 tags: std::collections::BTreeMap<String, String>,
25}
26impl GetDataScopeBoundsRequest {
27 #[inline]
29 pub fn new(data_source_rid: conjure_object::ResourceIdentifier) -> Self {
30 Self::builder().data_source_rid(data_source_rid).build()
31 }
32 #[inline]
33 pub fn data_source_rid(&self) -> &conjure_object::ResourceIdentifier {
34 &self.data_source_rid
35 }
36 #[inline]
37 pub fn tags(&self) -> &std::collections::BTreeMap<String, String> {
38 &self.tags
39 }
40}