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