Unified stack `GetValue` implementation
parent: tbd commit: 325f5af
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_diff, |
23 | repository_diff_patch, repository_file_from_id, repository_file_from_path, |
24 | repository_get_default_branch, repository_get_latest_commit, repository_get_value_description, |
25 | repository_get_value_visibility, repository_info, user_get_repositories, user_get_value_bio, |
26 | user_get_value_display_name, |
27 | ; |
28 | |
29 | |
30 | |
31 | |
32 | |
33 | |
34 | async |
35 | &self, |
36 | _object: O, |
37 | _operation: &str, |
38 | _payload: D, |
39 | _operation_state: &StackOperationState, |
40 | |
41 | // We don't handle operations with this backend |
42 | Err |
43 | |
44 | |
45 | async |
46 | &self, |
47 | _object_str: &str, |
48 | _operation_state: &StackOperationState, |
49 | |
50 | Err |
51 | |
52 | |
53 | |
54 | /// A backend implementation which attempts to resolve data from the instance's database. |
55 | |
56 | |
57 | |
58 | pub(self) our_instance: Instance, |
59 | pub(self) user_backend: , |
60 | pub(self) repository_backend: , |
61 | |
62 | |
63 | |
64 | |
65 | instance: Instance, |
66 | user_backend: , |
67 | repository_backend: , |
68 | |
69 | Self |
70 | our_instance: instance, |
71 | user_backend, |
72 | repository_backend, |
73 | |
74 | |
75 | |
76 | |
77 | let mut builder = new; |
78 | |
79 | builder |
80 | . |
81 | . |
82 | .; |
83 | |
84 | builder |
85 | . |
86 | . |
87 | . |
88 | . |
89 | .; |
90 | |
91 | builder |
92 | .value |
93 | .value |
94 | .value |
95 | .value |
96 | .value |
97 | .value; |
98 | |
99 | builder |
100 | .operation |
101 | .operation |
102 | .operation |
103 | .operation |
104 | .operation |
105 | .operation |
106 | .operation |
107 | .operation |
108 | .operation |
109 | .operation; |
110 | |
111 | builder |
112 | |
113 | |
114 | |
115 | |
116 | |
117 | f.debug_struct .finish |
118 | |
119 | |
120 |