#[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 AppendResult {
#[builder(
custom(type = super::super::super::super::api::Timestamp, convert = Box::new)
)]
#[serde(rename = "start")]
start: Box<super::super::super::super::api::Timestamp>,
#[builder(
custom(type = super::super::super::super::api::Timestamp, convert = Box::new)
)]
#[serde(rename = "end")]
end: Box<super::super::super::super::api::Timestamp>,
#[builder(custom(type = super::ComputeNodeAppendResponse, convert = Box::new))]
#[serde(rename = "result")]
result: Box<super::ComputeNodeAppendResponse>,
}
impl AppendResult {
#[inline]
pub fn new(
start: super::super::super::super::api::Timestamp,
end: super::super::super::super::api::Timestamp,
result: super::ComputeNodeAppendResponse,
) -> Self {
Self::builder().start(start).end(end).result(result).build()
}
#[inline]
pub fn start(&self) -> &super::super::super::super::api::Timestamp {
&*self.start
}
#[inline]
pub fn end(&self) -> &super::super::super::super::api::Timestamp {
&*self.end
}
#[inline]
pub fn result(&self) -> &super::ComputeNodeAppendResponse {
&*self.result
}
}