camunda_client/models/identity_link_dto.rs
1/*
2 * Camunda BPM REST API
3 *
4 * OpenApi Spec for Camunda BPM REST API.
5 *
6 * The version of the OpenAPI document: 7.13.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct IdentityLinkDto {
16 /// The id of the user participating in this link. Either `userId` or `groupId` is set.
17 #[serde(rename = "userId", skip_serializing_if = "Option::is_none")]
18 pub user_id: Option<String>,
19 /// The id of the group participating in this link. Either `groupId` or `userId` is set.
20 #[serde(rename = "groupId", skip_serializing_if = "Option::is_none")]
21 pub group_id: Option<String>,
22 /// The type of the identity link. The value of the this property can be user-defined. The Process Engine provides three pre-defined Identity Link `type`s: * `candidate` * `assignee` - reserved for the task assignee * `owner` - reserved for the task owner **Note**: When adding or removing an Identity Link, the `type` property must be defined.
23 #[serde(rename = "type")]
24 pub _type: String,
25}
26
27impl IdentityLinkDto {
28 pub fn new(_type: String) -> IdentityLinkDto {
29 IdentityLinkDto {
30 user_id: None,
31 group_id: None,
32 _type,
33 }
34 }
35}
36
37