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