nominal_api/conjure/objects/scout/compute/api/
bucketed_cartesian3d_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 BucketedCartesian3dPlot {
13 #[builder(default, list(item(type = super::Cartesian3dBucket)))]
14 #[serde(rename = "buckets", skip_serializing_if = "Vec::is_empty", default)]
15 buckets: Vec<super::Cartesian3dBucket>,
16}
17impl BucketedCartesian3dPlot {
18 #[inline]
20 pub fn new() -> Self {
21 Self::builder().build()
22 }
23 #[inline]
24 pub fn buckets(&self) -> &[super::Cartesian3dBucket] {
25 &*self.buckets
26 }
27}