backend/model/dto/
map_collaborator_impl.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::{keycloak_api::UserDto, model::entity::MapCollaborator};

use super::MapCollaboratorDto;

impl From<(MapCollaborator, UserDto)> for MapCollaboratorDto {
    fn from(value: (MapCollaborator, UserDto)) -> Self {
        Self {
            map_id: value.0.map_id,
            user_id: value.0.user_id,
            username: value.1.username,
        }
    }
}