clerk_sdk_rust_community/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.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct UpdateUserMetadataRequest {
16 /// Metadata saved on the user, that is visible to both your frontend and backend. The new object will be merged with the existing value.
17 #[serde(rename = "public_metadata", skip_serializing_if = "Option::is_none")]
18 pub public_metadata: Option<serde_json::Value>,
19 /// Metadata saved on the user that is only visible to your backend. The new object will be merged with the existing value.
20 #[serde(rename = "private_metadata", skip_serializing_if = "Option::is_none")]
21 pub private_metadata: Option<serde_json::Value>,
22 /// 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.
23 #[serde(rename = "unsafe_metadata", skip_serializing_if = "Option::is_none")]
24 pub unsafe_metadata: Option<serde_json::Value>,
25}
26
27impl UpdateUserMetadataRequest {
28 pub fn new() -> UpdateUserMetadataRequest {
29 UpdateUserMetadataRequest {
30 public_metadata: None,
31 private_metadata: None,
32 unsafe_metadata: None,
33 }
34 }
35}
36
37