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