Fixed imports!
parent: tbd commit: ef0e853
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 | |
24 | |
25 | type Success = u64; |
26 | type Failure = RepositoryError; |
27 | |
28 | |
29 | /// A request to get a repository's issues count. |
30 | /// |
31 | /// # Authentication |
32 | /// - Instance Authentication |
33 | /// - Validate request against the `issued_for` public key |
34 | /// - Validate User token against the user's instance's public key |
35 | /// # Authorization |
36 | /// - User Authorization |
37 | /// - Potential User permissions checks |
38 | |
39 | ; |
40 | |
41 | |
42 | type Success = ; |
43 | type Failure = RepositoryError; |
44 | |
45 | |
46 | /// A request to get a repository's issue labels. |
47 | /// |
48 | /// # Authentication |
49 | /// - Instance Authentication |
50 | /// - Validate request against the `issued_for` public key |
51 | /// - Validate User token against the user's instance's public key |
52 | /// # Authorization |
53 | /// - User Authorization |
54 | /// - Potential User permissions checks |
55 | |
56 | ; |
57 | |
58 | |
59 | type Success = ; |
60 | type Failure = RepositoryError; |
61 | |
62 | |
63 | /// A request to inspect the tree of a repository. |
64 | /// |
65 | /// # Authentication |
66 | /// - Instance Authentication |
67 | /// - Validate request against the `issued_for` public key |
68 | /// - Validate User token against the user's instance's public key |
69 | /// # Authorization |
70 | /// - User Authorization |
71 | /// - Potential User permissions checks |
72 | |
73 | |
74 | pub path: RepositoryTreeEntry, |
75 | |
76 | |
77 | |
78 | type Success = ; |
79 | type Failure = RepositoryError; |
80 | |
81 | |
82 | |
83 | pub async |
84 | self. |
85 | .await |
86 | |
87 | |
88 | pub async |
89 | &mut self, |
90 | |
91 | self. |
92 | .await |
93 | |
94 | |
95 | pub async |
96 | &mut self, |
97 | |
98 | self. |
99 | .await |
100 | |
101 | |
102 | pub async |
103 | &mut self, |
104 | entry: &RepositoryTreeEntry, |
105 | |
106 | self. |
107 | path: entry.clone, |
108 | |
109 | .await |
110 | |
111 | |
112 |