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
55
56
57
//! Bodies and queries of the [application identity profile endpoints](https://docs.discord.com/developers/resources/application-identity-profile).
use CompactString;
use Serialize;
use crateProfileData;
/// The body of [Update Application Identity Profile](https://docs.discord.com/developers/resources/application-identity-profile#update-application-identity-profile).
///
/// Every field is optional. [`data`](Self::data) replaces the stored stats as a whole, so send
/// all of them every time.
///
/// Contains floats, so it is `PartialEq` but not `Eq` (D-064).
///
/// discord.js counterpart: `RESTPatchAPIApplicationIdentityProfileJSONBody` (discord-api-types).
///
/// # Examples
///
/// ```
/// use djs_model::rest::UpdateApplicationIdentityProfile;
///
/// let mut body = UpdateApplicationIdentityProfile::default();
/// body.username = Some("ferris#1".into());
/// assert_eq!(serde_json::to_string(&body)?, r#"{"username":"ferris#1"}"#);
/// # Ok::<(), serde_json::Error>(())
/// ```
/// The query of [Get Application Identities by External ID](https://docs.discord.com/developers/resources/application-identity-profile#get-application-identities-by-external-id).
///
/// discord.js counterpart: `RESTGetAPIApplicationIdentitiesQuery` (discord-api-types).
/// The optional body of [Delete Application Identity](https://docs.discord.com/developers/resources/application-identity-profile#delete-application-identity).
///
/// discord.js counterpart: `RESTPostAPIApplicationIdentityDeleteJSONBody` (discord-api-types).