Add docs
parent: tbd commit: 51aad53
1 | use FromStr; |
2 | |
3 | use ; |
4 | |
5 | |
6 | pub url: String, |
7 | pub public_key: String, |
8 | |
9 | |
10 | /// An instance, defined by the URL it can be reached at. |
11 | /// |
12 | /// # Textual Format |
13 | /// An instance's textual format is its URL. |
14 | /// |
15 | /// ## Examples |
16 | /// For the instance `giterated.dev`, the following [`Instance`] initialization |
17 | /// would be valid: |
18 | /// |
19 | /// ``` |
20 | /// let instance = Instance { |
21 | /// url: String::from("giterated.dev") |
22 | /// }; |
23 | /// |
24 | /// // This is correct |
25 | /// assert_eq!(Instance::from_str("giterated.dev"), instance); |
26 | /// ``` |
27 | |
28 | |
29 | pub url: String, |
30 | |
31 | |
32 | |
33 | |
34 | self.url.clone |
35 | |
36 | |
37 | |
38 | |
39 | type Err = ; |
40 | |
41 | |
42 | Ok |
43 | |
44 | |
45 |