Skip to main content

nominal_api/conjure/objects/scout/dataframe/api/
batch_data_frame_metadata.rs

1/// Metadata about a data frame.
2#[derive(
3    Debug,
4    Clone,
5    conjure_object::serde::Serialize,
6    conjure_object::serde::Deserialize,
7    PartialEq,
8    Eq,
9    PartialOrd,
10    Ord,
11    Hash
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 BatchDataFrameMetadata {
17    #[builder(custom(type = super::BatchStreamingSupport, convert = Box::new))]
18    #[serde(rename = "streamingSupport")]
19    streaming_support: Box<super::BatchStreamingSupport>,
20}
21impl BatchDataFrameMetadata {
22    /// Constructs a new instance of the type.
23    #[inline]
24    pub fn new(streaming_support: super::BatchStreamingSupport) -> Self {
25        Self::builder().streaming_support(streaming_support).build()
26    }
27    #[inline]
28    pub fn streaming_support(&self) -> &super::BatchStreamingSupport {
29        &*self.streaming_support
30    }
31}