nominal-api-conjure 0.1443.0

Conjure HTTP API bindings for the Nominal platform
Documentation
#[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 ImageVizDefinitionV1 {
    #[builder(default, into)]
    #[serde(rename = "title", skip_serializing_if = "Option::is_none", default)]
    title: Option<String>,
    #[builder(default, into)]
    #[serde(rename = "attachmentRid", skip_serializing_if = "Option::is_none", default)]
    attachment_rid: Option<super::super::super::super::api::rids::AttachmentRid>,
    #[builder(default, into)]
    #[serde(rename = "alt", skip_serializing_if = "Option::is_none", default)]
    alt: Option<String>,
    #[builder(default, into)]
    #[serde(rename = "objectFit", skip_serializing_if = "Option::is_none", default)]
    object_fit: Option<super::ImageObjectFit>,
}
impl ImageVizDefinitionV1 {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    #[inline]
    pub fn title(&self) -> Option<&str> {
        self.title.as_ref().map(|o| &**o)
    }
    /// The uploaded image attachment. Absent until an image has been uploaded.
    #[inline]
    pub fn attachment_rid(
        &self,
    ) -> Option<&super::super::super::super::api::rids::AttachmentRid> {
        self.attachment_rid.as_ref().map(|o| &*o)
    }
    /// Alternative text for the image, for accessibility.
    #[inline]
    pub fn alt(&self) -> Option<&str> {
        self.alt.as_ref().map(|o| &**o)
    }
    /// How the image fills its container. Clients provide a default when absent.
    #[inline]
    pub fn object_fit(&self) -> Option<&super::ImageObjectFit> {
        self.object_fit.as_ref().map(|o| &*o)
    }
}