nominal_api/conjure/objects/scout/compute/api/
bucketed_multivariate_plot.rs1#[derive(
2 Debug,
3 Clone,
4 conjure_object::serde::Serialize,
5 conjure_object::serde::Deserialize,
6 conjure_object::private::DeriveWith
7)]
8#[serde(crate = "conjure_object::serde")]
9#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
10#[conjure_object::private::staged_builder::staged_builder]
11#[builder(crate = conjure_object::private::staged_builder, update, inline)]
12pub struct BucketedMultivariatePlot {
13 #[builder(default, list(item(type = super::MultivariateBucket)))]
14 #[serde(rename = "buckets", skip_serializing_if = "Vec::is_empty", default)]
15 buckets: Vec<super::MultivariateBucket>,
16 #[builder(default, into)]
17 #[serde(rename = "groupByKeys", skip_serializing_if = "Option::is_none", default)]
18 group_by_keys: Option<Vec<String>>,
19}
20impl BucketedMultivariatePlot {
21 #[inline]
23 pub fn new() -> Self {
24 Self::builder().build()
25 }
26 #[inline]
27 pub fn buckets(&self) -> &[super::MultivariateBucket] {
28 &*self.buckets
29 }
30 #[inline]
33 pub fn group_by_keys(&self) -> Option<&[String]> {
34 self.group_by_keys.as_ref().map(|o| &**o)
35 }
36}