nominal-api-conjure 0.1330.0

Conjure HTTP API bindings for the Nominal platform
Documentation
/// Okta inline hook error object displayed to the end user when registration is denied.
/// Custom messages are surfaced from errorCauses[].errorSummary with a location pointing
/// at a user profile attribute; the top-level errorSummary alone is not shown to users.
#[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 OktaRegistrationError {
    #[builder(into)]
    #[serde(rename = "errorSummary")]
    error_summary: String,
    #[builder(default, into)]
    #[serde(rename = "errorCauses", skip_serializing_if = "Option::is_none", default)]
    error_causes: Option<Vec<super::OktaRegistrationErrorCause>>,
}
impl OktaRegistrationError {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(error_summary: impl Into<String>) -> Self {
        Self::builder().error_summary(error_summary).build()
    }
    #[inline]
    pub fn error_summary(&self) -> &str {
        &*self.error_summary
    }
    #[inline]
    pub fn error_causes(&self) -> Option<&[super::OktaRegistrationErrorCause]> {
        self.error_causes.as_ref().map(|o| &**o)
    }
}