mirror of
https://github.com/typesense/typesense.git
synced 2025-05-18 04:32:38 +08:00
15 lines
202 B
C++
15 lines
202 B
C++
#include <string>
|
|
|
|
enum field_type {
|
|
INT32,
|
|
STRING
|
|
};
|
|
|
|
struct field {
|
|
std::string name;
|
|
field_type type;
|
|
|
|
field(std::string name, field_type type): name(name), type(type) {
|
|
|
|
}
|
|
}; |