ory_oathkeeper_client/models/rule_handler.rs
1/*
2 * Ory Oathkeeper API
3 *
4 * Documentation for all of Ory Oathkeeper's APIs.
5 *
6 * The version of the OpenAPI document: v25.4.0
7 * Contact: hi@ory.sh
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 RuleHandler {
16 /// Config contains the configuration for the handler. Please read the user guide for a complete list of each handler's available settings.
17 #[serde(rename = "config", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
18 pub config: Option<Option<serde_json::Value>>,
19 /// Handler identifies the implementation which will be used to handle this specific request. Please read the user guide for a complete list of available handlers.
20 #[serde(rename = "handler", skip_serializing_if = "Option::is_none")]
21 pub handler: Option<String>,
22}
23
24impl RuleHandler {
25 pub fn new() -> RuleHandler {
26 RuleHandler {
27 config: None,
28 handler: None,
29 }
30 }
31}
32