pipedrive_rs/models/
organization_relationship_with_calculated_fields.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 OrganizationRelationshipWithCalculatedFields {
16    /// The ID of the organization relationship
17    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
18    pub id: Option<i32>,
19    /// The type of the relationship
20    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
21    pub r#type: Option<String>,
22    #[serde(rename = "rel_owner_org_id", skip_serializing_if = "Option::is_none")]
23    pub rel_owner_org_id: Option<Box<crate::models::RelationshipOrganizationInfoItem>>,
24    #[serde(rename = "rel_linked_org_id", skip_serializing_if = "Option::is_none")]
25    pub rel_linked_org_id: Option<Box<crate::models::RelationshipOrganizationInfoItem>>,
26    /// The creation date and time of the relationship
27    #[serde(rename = "add_time", skip_serializing_if = "Option::is_none")]
28    pub add_time: Option<String>,
29    /// The last updated date and time of the relationship
30    #[serde(rename = "update_time", skip_serializing_if = "Option::is_none")]
31    pub update_time: Option<String>,
32    /// Whether the relationship is active or not
33    #[serde(rename = "active_flag", skip_serializing_if = "Option::is_none")]
34    pub active_flag: Option<String>,
35    /// The calculated type of the relationship with the linked organization
36    #[serde(rename = "calculated_type", skip_serializing_if = "Option::is_none")]
37    pub calculated_type: Option<String>,
38    /// The ID of the linked organization
39    #[serde(rename = "calculated_related_org_id", skip_serializing_if = "Option::is_none")]
40    pub calculated_related_org_id: Option<i32>,
41}
42
43impl OrganizationRelationshipWithCalculatedFields {
44    pub fn new() -> OrganizationRelationshipWithCalculatedFields {
45        OrganizationRelationshipWithCalculatedFields {
46            id: None,
47            r#type: None,
48            rel_owner_org_id: None,
49            rel_linked_org_id: None,
50            add_time: None,
51            update_time: None,
52            active_flag: None,
53            calculated_type: None,
54            calculated_related_org_id: None,
55        }
56    }
57}
58
59