Skip to main content

akeyless_api/models/
http_challenge_info.rs

1/*
2 * Akeyless API
3 *
4 * The purpose of this application is to provide access to Akeyless API.
5 *
6 * The version of the OpenAPI document: 3.0
7 * Contact: support@akeyless.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// HttpChallengeInfo : HTTPChallengeInfo contains HTTP-01 challenge details for user display
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct HttpChallengeInfo {
17    #[serde(rename = "file_content", skip_serializing_if = "Option::is_none")]
18    pub file_content: Option<String>,
19    #[serde(rename = "file_path", skip_serializing_if = "Option::is_none")]
20    pub file_path: Option<String>,
21    #[serde(rename = "instructions", skip_serializing_if = "Option::is_none")]
22    pub instructions: Option<String>,
23    #[serde(rename = "key_auth", skip_serializing_if = "Option::is_none")]
24    pub key_auth: Option<String>,
25    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
26    pub token: Option<String>,
27}
28
29impl HttpChallengeInfo {
30    /// HTTPChallengeInfo contains HTTP-01 challenge details for user display
31    pub fn new() -> HttpChallengeInfo {
32        HttpChallengeInfo {
33            file_content: None,
34            file_path: None,
35            instructions: None,
36            key_auth: None,
37            token: None,
38        }
39    }
40}
41