ory_client/models/
o_auth2_logout_request.rs

1/*
2 * Ory APIs
3 *
4 * # Introduction 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.  ## SDKs This document describes the APIs available in the Ory Network. The APIs are available as SDKs for the following languages:  | Language       | Download SDK                                                     | Documentation                                                                        | | -------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------ | | Dart           | [pub.dev](https://pub.dev/packages/ory_client)                   | [README](https://github.com/ory/sdk/blob/master/clients/client/dart/README.md)       | | .NET           | [nuget.org](https://www.nuget.org/packages/Ory.Client/)          | [README](https://github.com/ory/sdk/blob/master/clients/client/dotnet/README.md)     | | Elixir         | [hex.pm](https://hex.pm/packages/ory_client)                     | [README](https://github.com/ory/sdk/blob/master/clients/client/elixir/README.md)     | | Go             | [github.com](https://github.com/ory/client-go)                   | [README](https://github.com/ory/sdk/blob/master/clients/client/go/README.md)         | | Java           | [maven.org](https://search.maven.org/artifact/sh.ory/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/java/README.md)       | | JavaScript     | [npmjs.com](https://www.npmjs.com/package/@ory/client)           | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript/README.md) | | JavaScript (With fetch) | [npmjs.com](https://www.npmjs.com/package/@ory/client-fetch)           | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript-fetch/README.md) |  | PHP            | [packagist.org](https://packagist.org/packages/ory/client)       | [README](https://github.com/ory/sdk/blob/master/clients/client/php/README.md)        | | Python         | [pypi.org](https://pypi.org/project/ory-client/)                 | [README](https://github.com/ory/sdk/blob/master/clients/client/python/README.md)     | | Ruby           | [rubygems.org](https://rubygems.org/gems/ory-client)             | [README](https://github.com/ory/sdk/blob/master/clients/client/ruby/README.md)       | | Rust           | [crates.io](https://crates.io/crates/ory-client)                 | [README](https://github.com/ory/sdk/blob/master/clients/client/rust/README.md)       | 
5 *
6 * The version of the OpenAPI document: v1.22.21
7 * Contact: support@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 OAuth2LogoutRequest {
16    /// Challenge is the identifier of the logout authentication request.
17    #[serde(rename = "challenge", skip_serializing_if = "Option::is_none")]
18    pub challenge: Option<String>,
19    #[serde(rename = "client", skip_serializing_if = "Option::is_none")]
20    pub client: Option<Box<models::OAuth2Client>>,
21    #[serde(rename = "expires_at", skip_serializing_if = "Option::is_none")]
22    pub expires_at: Option<String>,
23    /// RequestURL is the original Logout URL requested.
24    #[serde(rename = "request_url", skip_serializing_if = "Option::is_none")]
25    pub request_url: Option<String>,
26    #[serde(rename = "requested_at", skip_serializing_if = "Option::is_none")]
27    pub requested_at: Option<String>,
28    /// RPInitiated is set to true if the request was initiated by a Relying Party (RP), also known as an OAuth 2.0 Client.
29    #[serde(rename = "rp_initiated", skip_serializing_if = "Option::is_none")]
30    pub rp_initiated: Option<bool>,
31    /// SessionID is the login session ID that was requested to log out.
32    #[serde(rename = "sid", skip_serializing_if = "Option::is_none")]
33    pub sid: Option<String>,
34    /// Subject is the user for whom the logout was request.
35    #[serde(rename = "subject", skip_serializing_if = "Option::is_none")]
36    pub subject: Option<String>,
37}
38
39impl OAuth2LogoutRequest {
40    pub fn new() -> OAuth2LogoutRequest {
41        OAuth2LogoutRequest {
42            challenge: None,
43            client: None,
44            expires_at: None,
45            request_url: None,
46            requested_at: None,
47            rp_initiated: None,
48            sid: None,
49            subject: None,
50        }
51    }
52}
53