Is there a way to destructure a struct partially?
You can partially destructure a struct like this:
let point = ThreeDPoint { x: 0.3, y: 0.4, z: 0.5 };
let ThreeDPoint { my_x, my_y, .. } = point;
..
as a field in a struct
or tuple pattern means "and the rest":
let ThreeDPoint { x: my_x, y: my_y, .. } = point;
There's more about this in the Rust Book.