Fix networked setting request
parent: tbd commit: 4b5330d
1 | |
2 | |
3 | |
4 | use Arc; |
5 | |
6 | use OperationError; |
7 | use Instance; |
8 | use ; |
9 | use ObjectBackend; |
10 | use GiteratedOperation; |
11 | use ; |
12 | use ; |
13 | use StackOperationState; |
14 | use SubstackBuilder; |
15 | use Debug; |
16 | use Mutex; |
17 | |
18 | use crate; |
19 | |
20 | use |
21 | instance_authentication_request, instance_create_repository_request, |
22 | instance_registration_request, repository_commit_before, repository_commit_by_id, |
23 | repository_diff, repository_diff_patch, repository_file_from_id, repository_file_from_path, |
24 | repository_get_branches, repository_get_default_branch, repository_get_latest_commit, |
25 | repository_get_setting, repository_get_statistics, repository_get_value_description, |
26 | repository_get_value_visibility, repository_info, repository_last_commit_of_file, |
27 | user_get_repositories, user_get_setting, user_get_value_bio, user_get_value_display_name, |
28 | ; |
29 | |
30 | |
31 | |
32 | |
33 | |
34 | |
35 | async |
36 | &self, |
37 | _object: O, |
38 | _operation: &str, |
39 | _payload: D, |
40 | _operation_state: &StackOperationState, |
41 | |
42 | // We don't handle operations with this backend |
43 | Err |
44 | |
45 | |
46 | async |
47 | &self, |
48 | _object_str: &str, |
49 | _operation_state: &StackOperationState, |
50 | |
51 | Err |
52 | |
53 | |
54 | |
55 | /// A backend implementation which attempts to resolve data from the instance's database. |
56 | |
57 | |
58 | |
59 | pub(self) our_instance: Instance, |
60 | pub(self) user_backend: , |
61 | pub(self) repository_backend: , |
62 | |
63 | |
64 | |
65 | |
66 | instance: Instance, |
67 | user_backend: , |
68 | repository_backend: , |
69 | |
70 | Self |
71 | our_instance: instance, |
72 | user_backend, |
73 | repository_backend, |
74 | |
75 | |
76 | |
77 | |
78 | let mut builder = new; |
79 | |
80 | builder |
81 | . |
82 | .object_settings |
83 | . |
84 | .object_settings |
85 | .; |
86 | |
87 | builder |
88 | . |
89 | . |
90 | . |
91 | . |
92 | .; |
93 | |
94 | builder |
95 | .value |
96 | .value |
97 | .value |
98 | .value |
99 | .value |
100 | .value; |
101 | |
102 | builder |
103 | .operation |
104 | .operation |
105 | .operation |
106 | .operation |
107 | .operation |
108 | .operation |
109 | .operation |
110 | .operation |
111 | .operation |
112 | .operation |
113 | .operation |
114 | .operation |
115 | .operation |
116 | .operation; |
117 | |
118 | builder |
119 | |
120 | |
121 | |
122 | |
123 | |
124 | f.debug_struct .finish |
125 | |
126 | |
127 |