Fixed imports!
parent: tbd commit: ef0e853
1 | use ; |
2 | |
3 | use ; |
4 | use Error; |
5 | |
6 | |
7 | |
8 | |
9 | pub use *; |
10 | pub use *; |
11 | |
12 | use crate GiteratedObject; |
13 | |
14 | |
15 | pub url: String, |
16 | pub public_key: String, |
17 | |
18 | |
19 | /// An instance, defined by the URL it can be reached at. |
20 | /// |
21 | /// # Textual Format |
22 | /// An instance's textual format is its URL. |
23 | /// |
24 | /// ## Examples |
25 | /// For the instance `giterated.dev`, the following [`Instance`] initialization |
26 | /// would be valid: |
27 | /// |
28 | /// ``` |
29 | /// let instance = Instance { |
30 | /// url: String::from("giterated.dev") |
31 | /// }; |
32 | /// |
33 | /// // This is correct |
34 | /// assert_eq!(Instance::from_str("giterated.dev").unwrap(), instance); |
35 | /// ``` |
36 | |
37 | |
38 | pub url: String, |
39 | |
40 | |
41 | |
42 | |
43 | "instance" |
44 | |
45 | |
46 | |
47 | Ok |
48 | |
49 | |
50 | |
51 | |
52 | |
53 | f.write_str |
54 | |
55 | |
56 | |
57 | |
58 | type Err = InstanceParseError; |
59 | |
60 | |
61 | Ok |
62 | |
63 | |
64 | |
65 | |
66 | |
67 | |
68 | InvalidFormat, |
69 | |
70 |