#[from]
impl From for Struct
struct Foo { field1: i32, field2: String, } #[from(Foo)] struct Bar { field1: i32, #[from(source.field2.parse::<i32>().unwrap())] field3: i32, }