diff --git a/docs/Group.md b/docs/Group.md index 2d93040..7f2859b 100644 --- a/docs/Group.md +++ b/docs/Group.md @@ -22,9 +22,9 @@ Name | Type | Description | Notes **member_count_synced_at** | Option<**String**> | | [optional] **is_verified** | Option<**bool**> | | [optional][default to false] **join_state** | Option<[**models::GroupJoinState**](GroupJoinState.md)> | | [optional] -**tags** | Option<**Vec**> | | [optional] +**tags** | Option<**Vec**> | | [optional] **transfer_target_id** | Option<**String**> | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [optional] -**galleries** | Option<[**Vec**](GroupGallery.md)> | | [optional] +**galleries** | Option<[**Vec**](GroupGallery.md)> | | [optional] **created_at** | Option<**String**> | | [optional] **updated_at** | Option<**String**> | | [optional] **last_post_created_at** | Option<**String**> | | [optional] diff --git a/docs/UserExists.md b/docs/UserExists.md index 17b947c..62fd89f 100644 --- a/docs/UserExists.md +++ b/docs/UserExists.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **user_exists** | **bool** | Status if a user exist with that username or userId. | [default to false] +**name_ok** | **bool** | Is the username valid? | [default to false] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/src/models/group.rs b/src/models/group.rs index 3b94caa..54b7d78 100644 --- a/src/models/group.rs +++ b/src/models/group.rs @@ -59,8 +59,8 @@ pub struct Group { pub created_at: Option, #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")] pub updated_at: Option, - #[serde(rename = "lastPostCreatedAt", skip_serializing_if = "Option::is_none")] - pub last_post_created_at: Option, + #[serde(rename = "lastPostCreatedAt", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub last_post_created_at: Option>, #[serde(rename = "onlineMemberCount", skip_serializing_if = "Option::is_none")] pub online_member_count: Option, #[serde(rename = "membershipStatus", skip_serializing_if = "Option::is_none")] diff --git a/src/models/group_my_member.rs b/src/models/group_my_member.rs index 33ae2af..ab3a3c7 100644 --- a/src/models/group_my_member.rs +++ b/src/models/group_my_member.rs @@ -20,8 +20,8 @@ pub struct GroupMyMember { pub user_id: Option, #[serde(rename = "roleIds", skip_serializing_if = "Option::is_none")] pub role_ids: Option>, - #[serde(rename = "acceptedByDisplayName", skip_serializing_if = "Option::is_none")] - pub accepted_by_display_name: Option, + #[serde(rename = "acceptedByDisplayName", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub accepted_by_display_name: Option>, /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. #[serde(rename = "acceptedById", skip_serializing_if = "Option::is_none")] pub accepted_by_id: Option, @@ -45,8 +45,8 @@ pub struct GroupMyMember { pub has2_fa: Option, #[serde(rename = "hasJoinedFromPurchase", skip_serializing_if = "Option::is_none")] pub has_joined_from_purchase: Option, - #[serde(rename = "lastPostReadAt", skip_serializing_if = "Option::is_none")] - pub last_post_read_at: Option, + #[serde(rename = "lastPostReadAt", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub last_post_read_at: Option>, #[serde(rename = "mRoleIds", skip_serializing_if = "Option::is_none")] pub m_role_ids: Option>, #[serde(rename = "permissions", skip_serializing_if = "Option::is_none")] diff --git a/src/models/user_exists.rs b/src/models/user_exists.rs index b1675a9..017b7e7 100644 --- a/src/models/user_exists.rs +++ b/src/models/user_exists.rs @@ -15,13 +15,17 @@ pub struct UserExists { /// Status if a user exist with that username or userId. #[serde(rename = "userExists")] pub user_exists: bool, + /// Is the username valid? + #[serde(rename = "nameOk")] + pub name_ok: bool, } impl UserExists { /// Status object representing if a queried user by username or userId exists or not. This model is primarily used by the `/auth/exists` endpoint, which in turn is used during registration. Please see the documentation on that endpoint for more information on usage. - pub fn new(user_exists: bool) -> UserExists { + pub fn new(user_exists: bool, name_ok: bool) -> UserExists { UserExists { user_exists, + name_ok, } } }