/*
 * Ory Kratos API
 *
 * Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests. 
 *
 * The version of the OpenAPI document: v0.10.1
 * Contact: hi@ory.sh
 * Generated by: https://openapi-generator.tech
 */




#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct SubmitSelfServiceSettingsFlowWithLookupMethodBody {
    /// CSRFToken is the anti-CSRF token
    #[serde(rename = "csrf_token", skip_serializing_if = "Option::is_none")]
    pub csrf_token: Option<String>,
    /// If set to true will save the regenerated lookup secrets
    #[serde(rename = "lookup_secret_confirm", skip_serializing_if = "Option::is_none")]
    pub lookup_secret_confirm: Option<bool>,
    /// Disables this method if true.
    #[serde(rename = "lookup_secret_disable", skip_serializing_if = "Option::is_none")]
    pub lookup_secret_disable: Option<bool>,
    /// If set to true will regenerate the lookup secrets
    #[serde(rename = "lookup_secret_regenerate", skip_serializing_if = "Option::is_none")]
    pub lookup_secret_regenerate: Option<bool>,
    /// If set to true will reveal the lookup secrets
    #[serde(rename = "lookup_secret_reveal", skip_serializing_if = "Option::is_none")]
    pub lookup_secret_reveal: Option<bool>,
    /// Method  Should be set to \"lookup\" when trying to add, update, or remove a lookup pairing.
    #[serde(rename = "method")]
    pub method: String,
}

impl SubmitSelfServiceSettingsFlowWithLookupMethodBody {
    pub fn new(method: String) -> SubmitSelfServiceSettingsFlowWithLookupMethodBody {
        SubmitSelfServiceSettingsFlowWithLookupMethodBody {
            csrf_token: None,
            lookup_secret_confirm: None,
            lookup_secret_disable: None,
            lookup_secret_regenerate: None,
            lookup_secret_reveal: None,
            method,
        }
    }
}


