trieve_client/models/
update_organization_req_payload.rs

1/*
2 * Trieve API
3 *
4 * Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5 *
6 * The version of the OpenAPI document: 0.11.7
7 * Contact: developers@trieve.ai
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct UpdateOrganizationReqPayload {
15    /// The new name of the organization. If not provided, the name will not be updated.
16    #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
17    pub name: Option<Option<String>>,
18    /// The id of the organization to update.
19    #[serde(rename = "organization_id")]
20    pub organization_id: uuid::Uuid,
21}
22
23impl UpdateOrganizationReqPayload {
24    pub fn new(organization_id: uuid::Uuid) -> UpdateOrganizationReqPayload {
25        UpdateOrganizationReqPayload {
26            name: None,
27            organization_id,
28        }
29    }
30}
31