(user: User)
| 33 | |
| 34 | impl From<User> for UserDTO { |
| 35 | fn from(user: User) -> Self { |
| 36 | UserDTO { |
| 37 | id: Uuid::from_bytes(user.id).hyphenated().to_string(), |
| 38 | identities: user.identities, |
| 39 | name: user.name, |
| 40 | status: user.status.into(), |
| 41 | groups: user |
| 42 | .groups |
| 43 | .iter() |
| 44 | .filter_map(|group| USER_GROUP_REPOSITORY.get(group)) |
| 45 | .map(Into::into) |
| 46 | .collect(), |
| 47 | last_modification_timestamp: timestamp_to_rfc3339(&user.last_modification_timestamp), |
| 48 | } |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | impl From<User> for BasicUserDTO { |
nothing calls this directly
no test coverage detected