#[derive(
Debug,
Clone,
conjure_object::serde::Serialize,
conjure_object::serde::Deserialize,
PartialEq,
Eq,
PartialOrd,
Ord,
Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct StreamingSupport {
#[serde(rename = "supportsStreaming")]
supports_streaming: bool,
#[builder(default, list(item(type = super::DataSourceStreamingSupport)))]
#[serde(
rename = "unsupportedDataSources",
skip_serializing_if = "Vec::is_empty",
default
)]
unsupported_data_sources: Vec<super::DataSourceStreamingSupport>,
}
impl StreamingSupport {
#[inline]
pub fn new(supports_streaming: bool) -> Self {
Self::builder().supports_streaming(supports_streaming).build()
}
#[inline]
pub fn supports_streaming(&self) -> bool {
self.supports_streaming
}
#[inline]
pub fn unsupported_data_sources(&self) -> &[super::DataSourceStreamingSupport] {
&*self.unsupported_data_sources
}
}