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