struct Foo { something: Option, bar: u32, } fn main() { let a = Foo { something: Some(1), bar: 2, } if Foo { something: Some(something), .. } = a { println!("{}", something); } }