Right now we derive:
pub struct Foo {
a: u32,
pub(crate) b: u32,
}
// =>
pub struct FooRef<'a> {
pub a: &'a u32,
pub b: &'a u32,
}
We should probably rather derive the field publicity based on the source struct, so in this case b would become pub(crate) while a is entirely private.
Right now we derive:
We should probably rather derive the field publicity based on the source struct, so in this case
bwould becomepub(crate)whileais entirely private.