#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct WeightRecomputeOutput {
#[allow(missing_docs)] pub data: ::std::option::Option<::std::vec::Vec::<crate::types::WeightRecomputeResponse>>,
}
impl WeightRecomputeOutput {
#[allow(missing_docs)] pub fn data(&self) -> &[crate::types::WeightRecomputeResponse] {
self.data.as_deref()
.unwrap_or_default()
}
}
impl WeightRecomputeOutput {
pub fn builder() -> crate::operation::weight_recompute::builders::WeightRecomputeOutputBuilder {
crate::operation::weight_recompute::builders::WeightRecomputeOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct WeightRecomputeOutputBuilder {
pub(crate) data: ::std::option::Option<::std::vec::Vec::<crate::types::WeightRecomputeResponse>>,
}
impl WeightRecomputeOutputBuilder {
pub fn data(mut self, input: crate::types::WeightRecomputeResponse) -> Self {
let mut v = self.data.unwrap_or_default();
v.push(input);
self.data = ::std::option::Option::Some(v);
self
}
#[allow(missing_docs)] pub fn set_data(mut self, input: ::std::option::Option<::std::vec::Vec::<crate::types::WeightRecomputeResponse>>) -> Self {
self.data = input; self
}
#[allow(missing_docs)] pub fn get_data(&self) -> &::std::option::Option<::std::vec::Vec::<crate::types::WeightRecomputeResponse>> {
&self.data
}
pub fn build(self) -> crate::operation::weight_recompute::WeightRecomputeOutput {
crate::operation::weight_recompute::WeightRecomputeOutput {
data: self.data
,
}
}
}