func (p *AppendBatchResult) ReadField0(iprot thrift.TProtocol) error { if v, err := iprot.ReadI32(); err != nil { return fmt.Errorf("error reading field 0: %s", err) } else { temp := Status(v) p.Success = &temp } return nil }