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