Could be

```rust
let fields = match *substr.fields {
    Struct(ref fs) => fs,
    EnumMatching(...) => { ... }
    _ => ...
};