/// Describes one requested export column that could not be exported.
#[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 ExportChannelFailure {
    #[builder(into)]
    #[serde(rename = "columnName")]
    column_name: String,
    #[builder(
        custom(
            type = super::super::super::super::api::SerializableError,
            convert = Box::new
        )
    )]
    #[serde(rename = "error")]
    error: Box<super::super::super::super::api::SerializableError>,
}
impl ExportChannelFailure {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        column_name: impl Into<String>,
        error: super::super::super::super::api::SerializableError,
    ) -> Self {
        Self::builder().column_name(column_name).error(error).build()
    }
    /// User-visible export column name from the request.
    #[inline]
    pub fn column_name(&self) -> &str {
        &*self.column_name
    }
    /// Error explaining why this export column could not be exported.
    #[inline]
    pub fn error(&self) -> &super::super::super::super::api::SerializableError {
        &*self.error
    }
}
