svix_webhook_with_clone/models/o_auth_payload_in.rs
1/*
2 * Svix API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.1.1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[allow(unused_imports)]
12use crate::models;
13#[allow(unused_imports)]
14use serde::{Deserialize, Serialize};
15
16 #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
17 pub struct OAuthPayloadIn {
18 #[serde(rename = "code")]
19 pub code: String,
20 #[serde(rename = "redirectUri")]
21 pub redirect_uri: String,
22 }
23
24 impl OAuthPayloadIn {
25 pub fn new(code: String, redirect_uri: String) -> OAuthPayloadIn {
26 OAuthPayloadIn {
27 code,
28 redirect_uri,
29 }
30 }
31 }
32