pub fn is_constraint_violation_exception(&self) -> bool {
        matches!(
            &self.kind,
            EnablePolicyTypeErrorKind::ConstraintViolationException(_)
        )
    }
/// Returns `true` if the error kind is `EnablePolicyTypeErrorKind::ConstraintViolationException`.
Returns `true` if the error kind is `EnablePolicyTypeErrorKind::ConstraintViolationException`.
Returns ` true ` if the error kind is ` EnablePolicyTypeErrorKind :: ConstraintViolationException ` .
pub fn is_constraint_violation_exception(&self) -> bool {
        matches!(
            &self.kind,
            EnablePolicyTypeErrorKind::ConstraintViolationException(_)
        )
    }
pub fn is_constraint_violation_exception ( & self ) -> bool { matches ! ( self kind EnablePolicyTypeErrorKind ConstraintViolationException ( ) ) }
Returns `true` if the error kind is `EnablePolicyTypeErrorKind::ConstraintViolationException`.
Returns ` true ` if the error kind is ` EnablePolicyTypeErrorKind :: ConstraintViolationException ` .
&self
&self