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