1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
/*
* Ory APIs
*
* Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
*
* The version of the OpenAPI document: v1.2.8
* Contact: support@ory.sh
* Generated by: https://openapi-generator.tech
*/
/// UpdateSettingsFlowWithLookupMethod : Update Settings Flow with Lookup Method
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateSettingsFlowWithLookupMethod {
/// 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 UpdateSettingsFlowWithLookupMethod {
/// Update Settings Flow with Lookup Method
pub fn new(method: String) -> UpdateSettingsFlowWithLookupMethod {
UpdateSettingsFlowWithLookupMethod {
csrf_token: None,
lookup_secret_confirm: None,
lookup_secret_disable: None,
lookup_secret_regenerate: None,
lookup_secret_reveal: None,
method,
}
}
}