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