Make old operations use new types
parent: tbd commit: b22dd12
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | use Error; |
8 | use async_trait; |
9 | use ; |
10 | use Object; |
11 | use ; |
12 | use Value; |
13 | |
14 | use crate GitBackendError; |
15 | use UserAuthenticationToken; |
16 | |
17 | use |
18 | AuthenticationTokenRequest, Instance, RegisterAccountRequest, RepositoryCreateRequest, |
19 | ; |
20 | |
21 | use |
22 | Commit, Repository, RepositoryBranch, RepositoryBranchRequest, RepositoryBranchesRequest, |
23 | RepositoryCommitBeforeRequest, RepositoryCommitFromIdRequest, RepositoryDiff, |
24 | RepositoryDiffPatchRequest, RepositoryDiffRequest, RepositoryFile, RepositoryFileFromIdRequest, |
25 | RepositoryFileFromPathRequest, RepositoryFileInspectRequest, RepositoryIssueTagsRequest, |
26 | RepositoryIssuesCountRequest, RepositoryIssuesRequest, RepositoryLastCommitOfFileRequest, |
27 | RepositoryStatistics, RepositoryStatisticsRequest, RepositorySummary, RepositoryTag, |
28 | RepositoryTagRequest, RepositoryTagsRequest, RepositoryTreeEntry, |
29 | ; |
30 | |
31 | use User; |
32 | |
33 | // TODO: Document all functions |
34 | |
35 | |
36 | async |
37 | &mut self, |
38 | user: &AuthenticatedUser, |
39 | request: &RepositoryCreateRequest, |
40 | ; |
41 | async |
42 | &mut self, |
43 | requester: & , |
44 | repository_object: &mut , |
45 | OperationState | : ,
46 | request: &RepositoryFileInspectRequest, |
47 | ; |
48 | async |
49 | &mut self, |
50 | requester: & , |
51 | repository_object: &mut , |
52 | OperationState | : ,
53 | request: &RepositoryFileFromIdRequest, |
54 | ; |
55 | async |
56 | &mut self, |
57 | requester: & , |
58 | repository_object: &mut , |
59 | OperationState | : ,
60 | request: &RepositoryFileFromPathRequest, |
61 | ; |
62 | async |
63 | &mut self, |
64 | requester: & , |
65 | repository_object: &mut , |
66 | OperationState | : ,
67 | request: &RepositoryCommitFromIdRequest, |
68 | ; |
69 | async |
70 | &mut self, |
71 | requester: & , |
72 | repository_object: &mut , |
73 | OperationState | : ,
74 | request: &RepositoryLastCommitOfFileRequest, |
75 | ; |
76 | async |
77 | &mut self, |
78 | requester: & , |
79 | repository_object: &mut , |
80 | OperationState | : ,
81 | request: &RepositoryDiffRequest, |
82 | ; |
83 | async |
84 | &mut self, |
85 | requester: & , |
86 | repository_object: &mut , |
87 | OperationState | : ,
88 | request: &RepositoryDiffPatchRequest, |
89 | ; |
90 | async |
91 | &mut self, |
92 | requester: & , |
93 | repository_object: &mut , |
94 | OperationState | : ,
95 | request: &RepositoryCommitBeforeRequest, |
96 | ; |
97 | async |
98 | &mut self, |
99 | requester: & , |
100 | repository_object: &mut , |
101 | OperationState | : ,
102 | request: &RepositoryStatisticsRequest, |
103 | ; |
104 | async |
105 | &mut self, |
106 | requester: & , |
107 | repository_object: &mut , |
108 | OperationState | : ,
109 | request: &RepositoryBranchesRequest, |
110 | ; |
111 | async |
112 | &mut self, |
113 | requester: & , |
114 | repository_object: &mut , |
115 | OperationState | : ,
116 | request: &RepositoryBranchRequest, |
117 | ; |
118 | async |
119 | &mut self, |
120 | requester: & , |
121 | repository_object: &mut , |
122 | OperationState | : ,
123 | request: &RepositoryTagsRequest, |
124 | ; |
125 | async |
126 | &mut self, |
127 | requester: & , |
128 | repository_object: &mut , |
129 | OperationState | : ,
130 | request: &RepositoryTagRequest, |
131 | ; |
132 | async |
133 | &mut self, |
134 | requester: & , |
135 | repository: &Repository, |
136 | ; |
137 | |
138 | |
139 | |
140 | |
141 | &mut self, |
142 | requester: & , |
143 | request: &RepositoryIssuesCountRequest, |
144 | ; |
145 | |
146 | &mut self, |
147 | requester: & , |
148 | request: &RepositoryIssueTagsRequest, |
149 | ; |
150 | |
151 | &mut self, |
152 | requester: & , |
153 | request: &RepositoryIssuesRequest, |
154 | ; |
155 | |
156 | |
157 | |
158 | |
159 | async |
160 | &mut self, |
161 | request: RegisterAccountRequest, |
162 | ; |
163 | |
164 | async |
165 | &mut self, |
166 | source: &Instance, |
167 | request: AuthenticationTokenRequest, |
168 | ; |
169 | |
170 | |
171 | |
172 | |
173 | async ; |
174 | async |
175 | &mut self, |
176 | requester: & , |
177 | user: &User, |
178 | ; |
179 | |
180 | |
181 | |
182 | |
183 | async ; |
184 | async ; |
185 | async |
186 | ; |
187 | async |
188 | &mut self, |
189 | repository: &Repository, |
190 | name: &str, |
191 | setting: Value, |
192 | ; |
193 | |
194 |