| 19 | #[storable] |
| 20 | #[derive(CandidType, Clone, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)] |
| 21 | pub struct User { |
| 22 | /// The user id, which is a UUID. |
| 23 | pub id: UserId, |
| 24 | /// The name of the user (if any). |
| 25 | pub name: String, |
| 26 | /// The user status within the system (e.g. active, inactive, etc.) |
| 27 | pub status: UserStatus, |
| 28 | /// The identities associated with the user. |
| 29 | pub identities: Vec<Principal>, |
| 30 | /// The groups the user is a member of (e.g. Finance Team, Admin, etc.) |
| 31 | pub groups: Vec<UUID>, |
| 32 | /// The last time the record was updated or created. |
| 33 | pub last_modification_timestamp: Timestamp, |
| 34 | } |
| 35 | |
| 36 | #[storable] |
| 37 | #[derive(Clone, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)] |
no outgoing calls