nomad_client/models/
search_request.rs

1/*
2 * Nomad
3 *
4 * Nomad OpenApi specification
5 *
6 * The version of the OpenAPI document: 0.11.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct SearchRequest {
16    #[serde(rename = "Prefix")]
17    pub prefix: String,
18    #[serde(rename = "Context")]
19    pub context: String,
20}
21
22impl SearchRequest {
23    pub fn new(prefix: String, context: String) -> SearchRequest {
24        SearchRequest {
25            prefix,
26            context,
27        }
28    }
29}
30
31