Add parameters to RepositoryInfoRequest and derive Clone on setting types
Type: Feature
parent: tbd commit: fcde8d4
1 | use ; |
2 | |
3 | use crate:: |
4 | , |
5 | , | Object
6 | , | ObjectBackend
7 | , | GiteratedOperation
8 | ; |
9 | |
10 | use ; |
11 | |
12 | /// A request to get a repository's information. |
13 | /// |
14 | /// # Authentication |
15 | /// - Instance Authentication |
16 | /// - Validate request against the `issued_for` public key |
17 | /// - Validate User token against the user's instance's public key |
18 | /// # Authorization |
19 | /// - User Authorization |
20 | /// - Potential User permissions checks |
21 | |
22 | |
23 | pub extra_metadata: bool, |
24 | pub rev: , |
25 | pub path: , |
26 | |
27 | |
28 | |
29 | type Success = RepositoryView; |
30 | type Failure = RepositoryError; |
31 | |
32 | |
33 | |
34 | ; |
35 | |
36 | |
37 | type Success = u64; |
38 | type Failure = RepositoryError; |
39 | |
40 | |
41 | /// A request to get a repository's issues count. |
42 | /// |
43 | /// # Authentication |
44 | /// - Instance Authentication |
45 | /// - Validate request against the `issued_for` public key |
46 | /// - Validate User token against the user's instance's public key |
47 | /// # Authorization |
48 | /// - User Authorization |
49 | /// - Potential User permissions checks |
50 | |
51 | ; |
52 | |
53 | |
54 | type Success = ; |
55 | type Failure = RepositoryError; |
56 | |
57 | |
58 | /// A request to get a repository's issue labels. |
59 | /// |
60 | /// # Authentication |
61 | /// - Instance Authentication |
62 | /// - Validate request against the `issued_for` public key |
63 | /// - Validate User token against the user's instance's public key |
64 | /// # Authorization |
65 | /// - User Authorization |
66 | /// - Potential User permissions checks |
67 | |
68 | ; |
69 | |
70 | |
71 | type Success = ; |
72 | type Failure = RepositoryError; |
73 | |
74 | |
75 | /// A request to inspect the tree of a repository. |
76 | /// |
77 | /// # Authentication |
78 | /// - Instance Authentication |
79 | /// - Validate request against the `issued_for` public key |
80 | /// - Validate User token against the user's instance's public key |
81 | /// # Authorization |
82 | /// - User Authorization |
83 | /// - Potential User permissions checks |
84 | |
85 | |
86 | pub path: RepositoryTreeEntry, |
87 | |
88 | |
89 | |
90 | type Success = ; |
91 | type Failure = RepositoryError; |
92 | |
93 | |
94 | |
95 | pub async |
96 | self. |
97 | extra_metadata, |
98 | rev, |
99 | path, |
100 | |
101 | .await |
102 | |
103 | // pub async fn issues_count(&mut self) -> Result<u64, OperationError<RepositoryError>> { |
104 | // self.request::<RepositoryIssuesCountRequest>(RepositoryIssuesCountRequest) |
105 | // .await |
106 | // } |
107 | |
108 | pub async |
109 | &mut self, |
110 | |
111 | self. |
112 | .await |
113 | |
114 | |
115 | pub async |
116 | &mut self, |
117 | |
118 | self. |
119 | .await |
120 | |
121 | |
122 | pub async |
123 | &mut self, |
124 | entry: &RepositoryTreeEntry, |
125 | |
126 | self. |
127 | path: entry.clone, |
128 | |
129 | .await |
130 | |
131 | |
132 |