Skip to main content

authentik_client/models/
redirect_uri.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2026.2.1
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// RedirectUri : A single allowed redirect URI entry
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RedirectUri {
17    #[serde(rename = "matching_mode")]
18    pub matching_mode: models::MatchingModeEnum,
19    #[serde(rename = "url")]
20    pub url: String,
21}
22
23impl RedirectUri {
24    /// A single allowed redirect URI entry
25    pub fn new(matching_mode: models::MatchingModeEnum, url: String) -> RedirectUri {
26        RedirectUri { matching_mode, url }
27    }
28}