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