func (p *LogResult) WriteField0(oprot thrift.TProtocol) (err thrift.TProtocolException) { err = oprot.WriteFieldBegin("success", thrift.I32, 0) if err != nil { return thrift.NewTProtocolExceptionWriteField(0, "success", p.ThriftName(), err) } err = oprot.WriteI32(int32(p.Success)) if err != nil { return thrift.NewTProtocolExceptionWriteField(0, "success", p.ThriftName(), err) } err = oprot.WriteFieldEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(0, "success", p.ThriftName(), err) } return err }