nominal-api 0.1239.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 ValidatedFileInput {
    #[builder(
        custom(
            type = super::super::super::super::scout::catalog::S3Handle,
            convert = Box::new
        )
    )]
    #[serde(rename = "handle")]
    handle: Box<super::super::super::super::scout::catalog::S3Handle>,
    #[builder(into)]
    #[serde(rename = "fileName")]
    file_name: String,
    #[builder(into)]
    #[serde(rename = "envVar")]
    env_var: String,
}
impl ValidatedFileInput {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        handle: super::super::super::super::scout::catalog::S3Handle,
        file_name: impl Into<String>,
        env_var: impl Into<String>,
    ) -> Self {
        Self::builder().handle(handle).file_name(file_name).env_var(env_var).build()
    }
    /// Path to the input file in S3.
    #[inline]
    pub fn handle(&self) -> &super::super::super::super::scout::catalog::S3Handle {
        &*self.handle
    }
    /// Name of the file that will be placed on disk.
    #[inline]
    pub fn file_name(&self) -> &str {
        &*self.file_name
    }
    /// Environment variable that will store the path to the file.
    #[inline]
    pub fn env_var(&self) -> &str {
        &*self.env_var
    }
}