1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
use Deserialize;
/// Response struct for querying a player's UUID, username, skin and cape.
///
/// This struct corresponds to the data returned by the following Mojang API endpoints:
/// - `https://api.minecraftservices.com/minecraft/profile/lookup/name/<player name>`
/// - `https://api.minecraftservices.com/minecraft/profile/lookup/<UUID>`
/// - `https://sessionserver.mojang.com/session/minecraft/profile/<UUID>`
///
/// Fields:
/// - `id`: The UUID of the player.
/// - `name`: The username of the player.
/// - `legacy`: Optional. Present if the account has **not** migrated to a Mojang account.
/// - `demo`: Optional. Present if the account does **not** own the game.
/// - `properties`: Optional. Present when querying skin and cape. A list of player properties.
/// Part of response struct, which is needed when querying player's skin and cape.
/// Fields:
/// - `name`: Name of the property. For now, the only property that exists is textures.
/// - `value`: Base64 string with all player textures (skin and cape).
/// Fields:
/// - `skin`: Skin texture. This does not exist if the player does not have a custom skin.
/// - `cape`: Cape texture. If the player does not have a cape, this does not exist.
/// Field:
/// - `url`: URL to the texture.