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