trieve-client 0.11.7

Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
Documentation
/*
 * Trieve API
 *
 * Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
 *
 * The version of the OpenAPI document: 0.11.7
 * Contact: developers@trieve.ai
 * Generated by: https://openapi-generator.tech
 */

use crate::models;

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateOrganizationReqPayload {
    /// The new name of the organization. If not provided, the name will not be updated.
    #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub name: Option<Option<String>>,
    /// The id of the organization to update.
    #[serde(rename = "organization_id")]
    pub organization_id: uuid::Uuid,
}

impl UpdateOrganizationReqPayload {
    pub fn new(organization_id: uuid::Uuid) -> UpdateOrganizationReqPayload {
        UpdateOrganizationReqPayload {
            name: None,
            organization_id,
        }
    }
}