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
/*
 * Ory Hydra API
 *
 * Documentation for all of Ory Hydra's APIs. 
 *
 * The version of the OpenAPI document: v2.2.0
 * Contact: hi@ory.sh
 * Generated by: https://openapi-generator.tech
 */

/// OAuth2RedirectTo : Contains a redirect URL used to complete a login, consent, or logout request.



#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct OAuth2RedirectTo {
    /// RedirectURL is the URL which you should redirect the user's browser to once the authentication process is completed.
    #[serde(rename = "redirect_to")]
    pub redirect_to: String,
}


impl OAuth2RedirectTo {
    /// Contains a redirect URL used to complete a login, consent, or logout request.
    pub fn new(redirect_to: String) -> OAuth2RedirectTo {
        OAuth2RedirectTo {
                redirect_to,
        }
    }
}