|
2 | 2 | //! |
3 | 3 | //! `model::member` is a model for the Ruddr Member object. This module is not publically accessible, but the structs and members are public for reading from `interface::member` returns. |
4 | 4 | //! [API Documentation](https://ruddr.readme.io/reference/member-object) |
5 | | -use crate::model::types; |
| 5 | +use crate::model::{shared, types}; |
6 | 6 | use serde::{Deserialize, Serialize}; |
7 | 7 |
|
8 | 8 | /// Model for Members used with List operations. |
@@ -56,82 +56,17 @@ pub struct Member { |
56 | 56 | pub forbid_timesheet_submission_when_below_capacity: bool, |
57 | 57 | } |
58 | 58 |
|
59 | | -#[derive(PartialEq, Deserialize, Serialize, Debug)] |
60 | | -#[serde(rename_all = "camelCase")] |
61 | | -pub struct SecurityRole { |
62 | | - pub id: types::UUID, |
63 | | - pub name: String, |
64 | | -} |
65 | | - |
66 | | -#[derive(PartialEq, Deserialize, Serialize, Debug)] |
67 | | -#[serde(rename_all = "camelCase")] |
68 | | -pub struct JobTitle { |
69 | | - pub id: types::UUID, |
70 | | - pub name: String, |
71 | | -} |
72 | | - |
73 | | -#[derive(PartialEq, Deserialize, Serialize, Debug)] |
74 | | -#[serde(rename_all = "camelCase")] |
75 | | -pub struct Discipline { |
76 | | - pub id: types::UUID, |
77 | | - pub name: String, |
78 | | -} |
79 | | - |
80 | | -#[derive(PartialEq, Deserialize, Serialize, Debug)] |
81 | | -#[serde(rename_all = "camelCase")] |
82 | | -pub struct Practice { |
83 | | - pub id: types::UUID, |
84 | | - pub name: String, |
85 | | -} |
86 | | - |
87 | | -#[derive(PartialEq, Deserialize, Serialize, Debug)] |
88 | | -#[serde(rename_all = "camelCase")] |
89 | | -pub struct Location { |
90 | | - pub id: types::UUID, |
91 | | - pub name: String, |
92 | | -} |
93 | | - |
94 | | -#[derive(PartialEq, Deserialize, Serialize, Debug)] |
95 | | -#[serde(rename_all = "camelCase")] |
96 | | -pub struct Manager { |
97 | | - pub id: types::UUID, |
98 | | - pub name: String, |
99 | | -} |
100 | | - |
101 | | -#[derive(PartialEq, Deserialize, Serialize, Debug)] |
102 | | -#[serde(rename_all = "camelCase")] |
103 | | -pub struct TimeOffApprover { |
104 | | - pub id: types::UUID, |
105 | | - pub name: String, |
106 | | -} |
107 | | - |
108 | | -#[derive(PartialEq, Deserialize, Serialize, Debug)] |
109 | | -#[serde(rename_all = "camelCase")] |
110 | | -pub struct HolidaySchedule { |
111 | | - pub id: types::UUID, |
112 | | - pub name: String, |
113 | | -} |
114 | | - |
115 | | -#[derive(PartialEq, Deserialize, Serialize, Debug)] |
116 | | -#[serde(rename_all = "camelCase")] |
117 | | -pub struct Tag { |
118 | | - pub id: types::UUID, |
119 | | - pub name: String, |
120 | | -} |
121 | | - |
122 | | -#[derive(PartialEq, Deserialize, Serialize, Debug)] |
123 | | -#[serde(rename_all = "camelCase")] |
124 | | -pub struct Skill { |
125 | | - pub id: types::UUID, |
126 | | - pub name: String, |
127 | | -} |
128 | | - |
129 | | -#[derive(PartialEq, Deserialize, Serialize, Debug)] |
130 | | -#[serde(rename_all = "camelCase")] |
131 | | -pub struct TimeOffType { |
132 | | - pub id: types::UUID, |
133 | | - pub name: String, |
134 | | -} |
| 59 | +pub type SecurityRole = shared::Entity; |
| 60 | +pub type JobTitle = shared::Entity; |
| 61 | +pub type Discipline = shared::Entity; |
| 62 | +pub type Practice = shared::Entity; |
| 63 | +pub type Location = shared::Entity; |
| 64 | +pub type Manager = shared::Entity; |
| 65 | +pub type TimeOffApprover = shared::Entity; |
| 66 | +pub type HolidaySchedule = shared::Entity; |
| 67 | +pub type Tag = shared::Entity; |
| 68 | +pub type Skill = shared::Entity; |
| 69 | +pub type TimeOffType = shared::Entity; |
135 | 70 |
|
136 | 71 | #[derive(PartialEq, Deserialize, Serialize, Debug)] |
137 | 72 | #[serde(rename_all = "camelCase")] |
|
0 commit comments