diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-10 13:48:51 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-10 13:48:51 -0600 |
| commit | 460a463d15e76fe9e3e7ceac1c2afc6c0069a5d2 (patch) | |
| tree | 922d448dad767ffe6ce8e87f6212846b6f926afa /src/authorization | |
| parent | afe29973c577b32de20d876d2dd30e3a6adcc1af (diff) | |
refactor: move gitlab types to a separate module
Diffstat (limited to 'src/authorization')
| -rw-r--r-- | src/authorization/entities.rs | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/src/authorization/entities.rs b/src/authorization/entities.rs index e47cf00f..b4f5a762 100644 --- a/src/authorization/entities.rs +++ b/src/authorization/entities.rs @@ -1,3 +1,4 @@ +use crate::gitlab::{Group, Member, Project}; use serde::Serialize; use std::collections::HashSet; @@ -23,43 +24,6 @@ pub struct CedarParent { pub id: String, } -// API structures -#[derive(Debug, serde::Deserialize)] -pub struct Project { - pub id: u64, - pub name: String, - pub path: String, - pub namespace: Namespace, -} - -#[derive(Debug, serde::Deserialize)] -pub struct Namespace { - pub id: u64, - pub name: String, - pub path: String, - pub kind: String, - pub full_path: String, - pub parent_id: Option<u64>, -} - -#[derive(Debug, serde::Deserialize)] -pub struct Member { - pub id: u64, - pub username: String, - pub name: String, - pub state: String, - pub access_level: u8, -} - -#[derive(Debug, serde::Deserialize)] -pub struct Group { - pub id: u64, - pub name: String, - pub path: String, - pub full_path: String, - pub parent_id: Option<u64>, -} - pub struct EntitiesRepository { pub token: String, pub host: String, |
