#[derive(
Debug,
Clone,
conjure_object::serde::Serialize,
conjure_object::serde::Deserialize,
conjure_object::private::DeriveWith
)]
#[serde(crate = "conjure_object::serde")]
#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct StreamingComputeNodeSubscription {
#[builder(custom(type = super::StreamingComputeNodeRequest, convert = Box::new))]
#[serde(rename = "computeRequest")]
compute_request: Box<super::StreamingComputeNodeRequest>,
#[builder(custom(type = super::SubscriptionOptions, convert = Box::new))]
#[serde(rename = "subscriptionOptions")]
subscription_options: Box<super::SubscriptionOptions>,
}
impl StreamingComputeNodeSubscription {
#[inline]
pub fn new(
compute_request: super::StreamingComputeNodeRequest,
subscription_options: super::SubscriptionOptions,
) -> Self {
Self::builder()
.compute_request(compute_request)
.subscription_options(subscription_options)
.build()
}
#[inline]
pub fn compute_request(&self) -> &super::StreamingComputeNodeRequest {
&*self.compute_request
}
#[inline]
pub fn subscription_options(&self) -> &super::SubscriptionOptions {
&*self.subscription_options
}
}