Skip to main content

heddle_client/
support_requests.rs

1//! Typed requests for `heddle support` handlers.
2
3#[derive(Clone, Debug)]
4pub enum SupportCommand {
5    Grant(SupportGrant),
6    List(SupportList),
7    Revoke(SupportRevoke),
8}
9
10#[derive(Clone, Debug)]
11pub struct SupportGrant {
12    pub operator_email: String,
13    pub namespace: Option<String>,
14    pub repo: Option<String>,
15    pub ttl: String,
16    pub reason: String,
17    pub remote: String,
18}
19
20#[derive(Clone, Debug)]
21pub struct SupportList {
22    pub namespace: Option<String>,
23    pub repo: Option<String>,
24    pub include_inactive: bool,
25    pub remote: String,
26}
27
28#[derive(Clone, Debug)]
29pub struct SupportRevoke {
30    pub id: String,
31    pub remote: String,
32}