authentik_rust/models/
o_auth_device_code_finish_challenge_response_request.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2024.2.1
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13/// OAuthDeviceCodeFinishChallengeResponseRequest : Response that device has been authenticated and tab can be closed
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct OAuthDeviceCodeFinishChallengeResponseRequest {
16    #[serde(rename = "component", skip_serializing_if = "Option::is_none")]
17    pub component: Option<String>,
18}
19
20impl OAuthDeviceCodeFinishChallengeResponseRequest {
21    /// Response that device has been authenticated and tab can be closed
22    pub fn new() -> OAuthDeviceCodeFinishChallengeResponseRequest {
23        OAuthDeviceCodeFinishChallengeResponseRequest {
24            component: None,
25        }
26    }
27}
28