RequestId &operator = (const uint64_t rhs); RequestId &operator = (const std::string &rhs); RequestId &operator = (const RequestId &rhs);
参数 |
是否必选 |
说明 |
取值要求 |
---|---|---|---|
rhs |
必选 |
请求体序列号,唯一标识请求体。 |
合法的uint64_t数值。 |
参数 |
是否必选 |
说明 |
取值要求 |
---|---|---|---|
rhs |
必选 |
请求体序列号,唯一标识请求体。 |
合法的string类型。 |
参数 |
是否必选 |
说明 |
取值要求 |
---|---|---|---|
rhs |
必选 |
推理请求体对象。 |
合法的请求体对象。 |
请求ID类的构造函数。
1 2 3 4 5 | std::string requestLabel = "123"; uint64_t requestIndex = 456; RequestId requestId1 = requestLabel; RequestId requestId2 = requestIndex; RequestId requestId3 = requestId1; |
RequestId对象。