nominal-api 0.1240.0

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 SignDownloadResponse {
    #[builder(into)]
    #[serde(rename = "url")]
    url: String,
    #[serde(rename = "expiresAt")]
    expires_at: conjure_object::DateTime<conjure_object::Utc>,
}
impl SignDownloadResponse {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        url: impl Into<String>,
        expires_at: conjure_object::DateTime<conjure_object::Utc>,
    ) -> Self {
        Self::builder().url(url).expires_at(expires_at).build()
    }
    /// Short-lived signed GET URL. Expires after 15 minutes.
    #[inline]
    pub fn url(&self) -> &str {
        &*self.url
    }
    /// Absolute expiry timestamp. Callers must stop using the URL after this.
    #[inline]
    pub fn expires_at(&self) -> conjure_object::DateTime<conjure_object::Utc> {
        self.expires_at
    }
}