#[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 DockerImageSource {
#[builder(into)]
#[serde(rename = "registry")]
registry: String,
#[builder(into)]
#[serde(rename = "repository")]
repository: String,
#[builder(custom(type = super::TagDetails, convert = Box::new))]
#[serde(rename = "tagDetails")]
tag_details: Box<super::TagDetails>,
#[builder(custom(type = super::Authentication, convert = Box::new))]
#[serde(rename = "authentication")]
authentication: Box<super::Authentication>,
#[builder(default, into)]
#[serde(rename = "command", skip_serializing_if = "Option::is_none", default)]
command: Option<String>,
}
impl DockerImageSource {
#[inline]
pub fn registry(&self) -> &str {
&*self.registry
}
#[inline]
pub fn repository(&self) -> &str {
&*self.repository
}
#[inline]
pub fn tag_details(&self) -> &super::TagDetails {
&*self.tag_details
}
#[inline]
pub fn authentication(&self) -> &super::Authentication {
&*self.authentication
}
#[inline]
pub fn command(&self) -> Option<&str> {
self.command.as_ref().map(|o| &**o)
}
}