#[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 DuplicateTimestamp {
#[builder(
custom(
type = super::super::super::super::super::objects::api::Timestamp,
convert = Box::new
)
)]
#[serde(rename = "timestamp")]
timestamp: Box<super::super::super::super::super::objects::api::Timestamp>,
}
impl DuplicateTimestamp {
#[inline]
pub fn new(
timestamp: super::super::super::super::super::objects::api::Timestamp,
) -> Self {
Self::builder().timestamp(timestamp).build()
}
#[inline]
pub fn timestamp(
&self,
) -> &super::super::super::super::super::objects::api::Timestamp {
&*self.timestamp
}
}
impl conjure_error::ErrorType for DuplicateTimestamp {
#[inline]
fn code() -> conjure_error::ErrorCode {
conjure_error::ErrorCode::InvalidArgument
}
#[inline]
fn name() -> &'static str {
"Compute:DuplicateTimestamp"
}
#[inline]
fn safe_args() -> &'static [&'static str] {
&["timestamp"]
}
}