Spinning
parent: tbd commit: 1788060
1 | use FromStr; |
2 | |
3 | use CreateIssueRequest; |
4 | use ; |
5 | use RuntimeHandle; |
6 | use ; |
7 | use Level; |
8 | |
9 | |
10 | pub async |
11 | fmt |
12 | .pretty |
13 | .with_thread_names |
14 | .with_max_level |
15 | .init; |
16 | |
17 | let mut runtime = new; |
18 | |
19 | runtime.load_dylib?; |
20 | |
21 | runtime.init; |
22 | |
23 | let runtime = unsafe ; |
24 | |
25 | let operation = CreateIssueRequest |
26 | name: String from, |
27 | contents: String from, |
28 | author: from_str .unwrap, |
29 | ; |
30 | |
31 | match runtime |
32 | .handle_typed |
33 | unwrap, | from_str .
34 | operation, |
35 | |
36 | .await |
37 | |
38 | Ok => |
39 | println! |
40 | |
41 | Err => |
42 | println! |
43 | |
44 | |
45 | |
46 | Ok |
47 | |
48 |