Objects contains no elements. You need to append element first. Like this:
r.Objects = append(r.Objects, struct{ id int }{})
Also you can omit r.Objects[0].id = 10; using initialization of your struct like this:
r.Objects = append(r.Objects, struct{ id int }{ 10 })