clerk_rs/models/
update_o_auth_application_request.rs

1/*
2 * Clerk Backend API
3 *
4 * The Clerk REST Backend API, meant to be accessed by backend servers. Please see https://clerk.com/docs for more information.
5 *
6 * The version of the OpenAPI document: v1
7 * Contact: support@clerk.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
12pub struct UpdateOAuthApplicationRequest {
13	/// The new name of the OAuth application
14	#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
15	pub name: Option<String>,
16	/// The new callback URL of the OAuth application
17	#[serde(rename = "callback_url", skip_serializing_if = "Option::is_none")]
18	pub callback_url: Option<String>,
19	/// Define the allowed scopes for the new OAuth applications that dictate the user payload of the OAuth user info endpoint. Available scopes are `profile`, `email`, `public_metadata`, `private_metadata`. Provide the requested scopes as a string, separated by spaces.
20	#[serde(rename = "scopes", skip_serializing_if = "Option::is_none")]
21	pub scopes: Option<String>,
22}
23
24impl UpdateOAuthApplicationRequest {
25	pub fn new() -> UpdateOAuthApplicationRequest {
26		UpdateOAuthApplicationRequest {
27			name: None,
28			callback_url: None,
29			scopes: None,
30		}
31	}
32}