1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use std::collections::HashSet;

use serde::{Deserialize, Serialize};

use crate::{DigestIdentifier, KeyIdentifier};

pub mod authorized_subjects;
pub mod error;
pub mod manager;

#[derive(Debug, Clone, Serialize, Deserialize)]
pub enum AuthorizedSubjectsCommand {
    NewAuthorizedSubject {
        subject_id: DigestIdentifier,
        providers: HashSet<KeyIdentifier>,
    },
}

#[derive(Debug, Clone, Serialize, Deserialize)]
pub enum AuthorizedSubjectsResponse {
    NoResponse,
}