```rust
let id = get_struct_ctor_id(item).unwrap_or(item.id);
```

if you feel like a bit of (code) golf. ;)