gitlib/dto/
permission_repo_request.rs

1
2
3
4
5
6
7
8
9
10
11
12
use crate::enums::participant_type::ParticipantType;
use serde::{Deserialize, Serialize};
use uuid::Uuid;

#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(rename_all = "camelCase")]
pub struct PermissionRepoRequest {
    pub repo: Vec<String>,
    pub org_id: Uuid,
    pub roles: Vec<ParticipantType>,
    pub is_owner: bool,
}