Fix handling stack
parent: tbd commit: c53b026
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 | /// Whether to get extra metadata for every entry (file mode, size and last commit made to it). |
87 | pub extra_metadata: bool, |
88 | /// Revision of the repository to get (branch, commit id). |
89 | pub rev: , |
90 | /// If not given a path, it'll default to the base. |
91 | pub path: , |
92 | |
93 | |
94 | |
95 | type Success = ; |
96 | type Failure = RepositoryError; |
97 | |
98 | |
99 | |
100 | pub async |
101 | &mut self, |
102 | extra_metadata: bool, |
103 | rev: , |
104 | path: , |
105 | |
106 | self. |
107 | extra_metadata, |
108 | rev, |
109 | path, |
110 | |
111 | .await |
112 | |
113 | // pub async fn issues_count(&mut self) -> Result<u64, OperationError<RepositoryError>> { |
114 | // self.request::<RepositoryIssuesCountRequest>(RepositoryIssuesCountRequest) |
115 | // .await |
116 | // } |
117 | |
118 | pub async |
119 | &mut self, |
120 | |
121 | self. |
122 | .await |
123 | |
124 | |
125 | pub async |
126 | &mut self, |
127 | |
128 | self. |
129 | .await |
130 | |
131 | |
132 | pub async |
133 | &mut self, |
134 | extra_metadata: bool, |
135 | rev: , |
136 | path: , |
137 | |
138 | self. |
139 | extra_metadata, |
140 | rev: rev.map, |
141 | path: path.map, |
142 | |
143 | .await |
144 | |
145 | |
146 |