/// The type check failed for the following properties.
#[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 TypeCheckFailed {
    #[builder(default, set(item(type = String, into)))]
    #[serde(
        rename = "missingProperties",
        skip_serializing_if = "std::collections::BTreeSet::is_empty",
        default
    )]
    missing_properties: std::collections::BTreeSet<String>,
}
impl TypeCheckFailed {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    #[inline]
    pub fn missing_properties(&self) -> &std::collections::BTreeSet<String> {
        &self.missing_properties
    }
}
impl conjure_error::ErrorType for TypeCheckFailed {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::InvalidArgument
    }
    #[inline]
    fn name() -> &'static str {
        "Assets:TypeCheckFailed"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &[]
    }
}
