/*
* Orvanta API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.7.0
* Contact: contact@orvanta.cloud
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// JobSearchHit : A matched completed run. `document` is Tantivy's native `{field: [values, ...]}` shape (every field is multi-valued), with keys `id`, `workspace_id`, `script_path`, `success`, `created_at`.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct JobSearchHit {
#[serde(rename = "document", skip_serializing_if = "Option::is_none")]
pub document: Option<serde_json::Value>,
/// Stable per-hit id (the job id) for selection/dedup in the UI.
#[serde(rename = "search_id", skip_serializing_if = "Option::is_none")]
pub search_id: Option<String>,
}
impl JobSearchHit {
/// A matched completed run. `document` is Tantivy's native `{field: [values, ...]}` shape (every field is multi-valued), with keys `id`, `workspace_id`, `script_path`, `success`, `created_at`.
pub fn new() -> JobSearchHit {
JobSearchHit {
document: None,
search_id: None,
}
}
}