windmill-api 1.864.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.864.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct HttpStoreSettingsRead {
    /// Path template appended to base_url. {workspace} and {path} must each appear here or in a query value.
    #[serde(rename = "path")]
    pub path: String,
    /// Query parameters; values may use {workspace} and {path}
    #[serde(rename = "query", skip_serializing_if = "Option::is_none")]
    pub query: Option<std::collections::HashMap<String, String>>,
    /// JSON pointer to the value in the response; empty means the whole body
    #[serde(rename = "value_pointer", skip_serializing_if = "Option::is_none")]
    pub value_pointer: Option<String>,
    #[serde(rename = "value_encoding", skip_serializing_if = "Option::is_none")]
    pub value_encoding: Option<ValueEncoding>,
}

impl HttpStoreSettingsRead {
    pub fn new(path: String) -> HttpStoreSettingsRead {
        HttpStoreSettingsRead {
            path,
            query: None,
            value_pointer: None,
            value_encoding: None,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ValueEncoding {
    #[serde(rename = "plain")]
    Plain,
    #[serde(rename = "base64")]
    Base64,
}

impl Default for ValueEncoding {
    fn default() -> ValueEncoding {
        Self::Plain
    }
}