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