pipedrive_rs/models/
update_organization_request.rs

1/*
2 * Pipedrive API v1
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.0.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct UpdateOrganizationRequest {
16    /// The name of the organization
17    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
18    pub name: Option<String>,
19    /// The ID of the user who will be marked as the owner of this organization. When omitted, the authorized user ID will be used.
20    #[serde(rename = "owner_id", skip_serializing_if = "Option::is_none")]
21    pub owner_id: Option<i32>,
22    #[serde(rename = "visible_to", skip_serializing_if = "Option::is_none")]
23    pub visible_to: Option<VisibleTo>,
24}
25
26impl UpdateOrganizationRequest {
27    pub fn new() -> UpdateOrganizationRequest {
28        UpdateOrganizationRequest {
29            name: None,
30            owner_id: None,
31            visible_to: None,
32        }
33    }
34}
35
36/// 
37#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
38pub enum VisibleTo {
39    #[serde(rename = "1")]
40    Variant1,
41    #[serde(rename = "3")]
42    Variant3,
43    #[serde(rename = "5")]
44    Variant5,
45    #[serde(rename = "7")]
46    Variant7,
47}
48
49impl Default for VisibleTo {
50    fn default() -> VisibleTo {
51        Self::Variant1
52    }
53}
54