clerk_sdk_rust_community/models/
merge_organization_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 MergeOrganizationMetadataRequest {
16    /// Metadata saved on the organization, 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 organization 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}
23
24impl MergeOrganizationMetadataRequest {
25    pub fn new() -> MergeOrganizationMetadataRequest {
26        MergeOrganizationMetadataRequest {
27            public_metadata: None,
28            private_metadata: None,
29        }
30    }
31}
32
33