clerk_rs/models/
update_user_metadata_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 UpdateUserMetadataRequest {
13	/// Metadata saved on the user, that is visible to both your frontend and backend. The new object will be merged with the existing value.
14	#[serde(rename = "public_metadata", skip_serializing_if = "Option::is_none")]
15	pub public_metadata: Option<serde_json::Value>,
16	/// Metadata saved on the user that is only visible to your backend. The new object will be merged with the existing value.
17	#[serde(rename = "private_metadata", skip_serializing_if = "Option::is_none")]
18	pub private_metadata: Option<serde_json::Value>,
19	/// Metadata saved on the user, that can be updated from both the Frontend and Backend APIs. The new object will be merged with the existing value.  Note: Since this data can be modified from the frontend, it is not guaranteed to be safe.
20	#[serde(rename = "unsafe_metadata", skip_serializing_if = "Option::is_none")]
21	pub unsafe_metadata: Option<serde_json::Value>,
22}
23
24impl UpdateUserMetadataRequest {
25	pub fn new() -> UpdateUserMetadataRequest {
26		UpdateUserMetadataRequest {
27			public_metadata: None,
28			private_metadata: None,
29			unsafe_metadata: None,
30		}
31	}
32}