Skip to main content

windmill_api/models/
search_docs_200_response_results_inner.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.745.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct SearchDocs200ResponseResultsInner {
16    #[serde(rename = "url")]
17    pub url: String,
18    #[serde(rename = "title")]
19    pub title: String,
20    #[serde(rename = "score")]
21    pub score: i32,
22    #[serde(rename = "snippets")]
23    pub snippets: Vec<String>,
24}
25
26impl SearchDocs200ResponseResultsInner {
27    pub fn new(url: String, title: String, score: i32, snippets: Vec<String>) -> SearchDocs200ResponseResultsInner {
28        SearchDocs200ResponseResultsInner {
29            url,
30            title,
31            score,
32            snippets,
33        }
34    }
35}
36