open_api_hydra/models/
logout_request.rs

1/*
2 * ORY Hydra
3 *
4 * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.
5 *
6 * The version of the OpenAPI document: latest
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct LogoutRequest {
16    /// RequestURL is the original Logout URL requested.
17    #[serde(rename = "request_url", skip_serializing_if = "Option::is_none")]
18    pub request_url: Option<String>,
19    /// RPInitiated is set to true if the request was initiated by a Relying Party (RP), also known as an OAuth 2.0 Client.
20    #[serde(rename = "rp_initiated", skip_serializing_if = "Option::is_none")]
21    pub rp_initiated: Option<bool>,
22    /// SessionID is the login session ID that was requested to log out.
23    #[serde(rename = "sid", skip_serializing_if = "Option::is_none")]
24    pub sid: Option<String>,
25    /// Subject is the user for whom the logout was request.
26    #[serde(rename = "subject", skip_serializing_if = "Option::is_none")]
27    pub subject: Option<String>,
28}
29
30impl LogoutRequest {
31    pub fn new() -> LogoutRequest {
32        LogoutRequest {
33            request_url: None,
34            rp_initiated: None,
35            sid: None,
36            subject: None,
37        }
38    }
39}
40
41