Derive macro for set_field

see set_field