Add field endpoint
This commit is contained in:
@@ -96,19 +96,10 @@ pub enum Source {
|
||||
|
||||
#[derive(Debug, Clone, Deserialize)]
|
||||
pub struct FieldSpec {
|
||||
/// The type of this field
|
||||
pub r#type: FieldType,
|
||||
|
||||
/// How to find this field in a data entry
|
||||
pub path: Vec<ObjectPath>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, Deserialize, PartialEq, Eq)]
|
||||
#[serde(rename_all = "lowercase")]
|
||||
pub enum FieldType {
|
||||
Text,
|
||||
}
|
||||
|
||||
//
|
||||
// MARK: fts
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user