nominal-api 0.1240.0

API bindings for the Nominal platform
Documentation
/// Docker container image source definition.
#[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 {
    /// The container registry where the image is hosted.
    #[inline]
    pub fn registry(&self) -> &str {
        &*self.registry
    }
    /// The repository name of the image.
    #[inline]
    pub fn repository(&self) -> &str {
        &*self.repository
    }
    #[inline]
    pub fn tag_details(&self) -> &super::TagDetails {
        &*self.tag_details
    }
    /// Optional authentication for accessing private container registries.
    #[inline]
    pub fn authentication(&self) -> &super::Authentication {
        &*self.authentication
    }
    #[inline]
    pub fn command(&self) -> Option<&str> {
        self.command.as_ref().map(|o| &**o)
    }
}