Skip to content

Commit

Permalink
chore: generation
Browse files Browse the repository at this point in the history
  • Loading branch information
0xkubectl committed Jul 27, 2024
1 parent 4085660 commit 6567661
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
4 changes: 2 additions & 2 deletions docs/Group.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>**> | | [optional]
**tags** | Option<**Vec<String>**> | | [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<models::GroupGallery>**](GroupGallery.md)> | | [optional]
**galleries** | Option<[**Vec<models::GroupGallery>**](GroupGallery.md)> | | [optional]
**created_at** | Option<**String**> | | [optional]
**updated_at** | Option<**String**> | | [optional]
**last_post_created_at** | Option<**String**> | | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/UserExists.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions src/models/group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ pub struct Group {
pub created_at: Option<String>,
#[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
pub updated_at: Option<String>,
#[serde(rename = "lastPostCreatedAt", skip_serializing_if = "Option::is_none")]
pub last_post_created_at: Option<String>,
#[serde(rename = "lastPostCreatedAt", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub last_post_created_at: Option<Option<String>>,
#[serde(rename = "onlineMemberCount", skip_serializing_if = "Option::is_none")]
pub online_member_count: Option<i32>,
#[serde(rename = "membershipStatus", skip_serializing_if = "Option::is_none")]
Expand Down
8 changes: 4 additions & 4 deletions src/models/group_my_member.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ pub struct GroupMyMember {
pub user_id: Option<String>,
#[serde(rename = "roleIds", skip_serializing_if = "Option::is_none")]
pub role_ids: Option<Vec<String>>,
#[serde(rename = "acceptedByDisplayName", skip_serializing_if = "Option::is_none")]
pub accepted_by_display_name: Option<String>,
#[serde(rename = "acceptedByDisplayName", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub accepted_by_display_name: Option<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.
#[serde(rename = "acceptedById", skip_serializing_if = "Option::is_none")]
pub accepted_by_id: Option<String>,
Expand All @@ -45,8 +45,8 @@ pub struct GroupMyMember {
pub has2_fa: Option<bool>,
#[serde(rename = "hasJoinedFromPurchase", skip_serializing_if = "Option::is_none")]
pub has_joined_from_purchase: Option<bool>,
#[serde(rename = "lastPostReadAt", skip_serializing_if = "Option::is_none")]
pub last_post_read_at: Option<String>,
#[serde(rename = "lastPostReadAt", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub last_post_read_at: Option<Option<String>>,
#[serde(rename = "mRoleIds", skip_serializing_if = "Option::is_none")]
pub m_role_ids: Option<Vec<String>>,
#[serde(rename = "permissions", skip_serializing_if = "Option::is_none")]
Expand Down
6 changes: 5 additions & 1 deletion src/models/user_exists.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}
}
Expand Down

0 comments on commit 6567661

Please sign in to comment.