Field macro for structure as class element

Hi,

I have a structure as class element. What is the uvm field macro to copy this.

typedef struct {
   u32_t    index;
   u64_t    data;
} data_struct_t;

and I have a class as 

class A extends uvm_object;
  data_struct_t      d_in;

  function new(string name = "A");
    super.new(name);
  endfunction: new

  // factory registration
  `uvm_object_utils_begin (A)
    `uvm_field_int(d_in, UVM_DEFAULT)
  `uvm_objec_utils_end

endclass: A


but, I get a compile error like this:

incompatible type .

How can I copy the structure within the class ? If there is no field macro, could anyone give me do_copy, do_print and do_compare functions ?

Thanks,
Madhu