macro_rules! match_response {
    ($pat:pat $(if $guard:expr)? => $result:expr) => { ... };
}