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