Skip to main content

windmill_api/models/
http_store_settings_read.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.864.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 HttpStoreSettingsRead {
16    /// Path template appended to base_url. {workspace} and {path} must each appear here or in a query value.
17    #[serde(rename = "path")]
18    pub path: String,
19    /// Query parameters; values may use {workspace} and {path}
20    #[serde(rename = "query", skip_serializing_if = "Option::is_none")]
21    pub query: Option<std::collections::HashMap<String, String>>,
22    /// JSON pointer to the value in the response; empty means the whole body
23    #[serde(rename = "value_pointer", skip_serializing_if = "Option::is_none")]
24    pub value_pointer: Option<String>,
25    #[serde(rename = "value_encoding", skip_serializing_if = "Option::is_none")]
26    pub value_encoding: Option<ValueEncoding>,
27}
28
29impl HttpStoreSettingsRead {
30    pub fn new(path: String) -> HttpStoreSettingsRead {
31        HttpStoreSettingsRead {
32            path,
33            query: None,
34            value_pointer: None,
35            value_encoding: None,
36        }
37    }
38}
39/// 
40#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
41pub enum ValueEncoding {
42    #[serde(rename = "plain")]
43    Plain,
44    #[serde(rename = "base64")]
45    Base64,
46}
47
48impl Default for ValueEncoding {
49    fn default() -> ValueEncoding {
50        Self::Plain
51    }
52}
53