-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
310 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# OidcTraqUserInfo | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**bio** | **String** | 自己紹介(biography) | | ||
**groups** | [**Vec<uuid::Uuid>**](uuid::Uuid.md) | 所属グループのUUIDの配列 | | ||
**tags** | [**Vec<crate::models::UserTag>**](UserTag.md) | タグリスト | | ||
**last_online** | Option<**String**> | 最終オンライン日時 | | ||
**twitter_id** | **String** | Twitter ID | | ||
**display_name** | **String** | ユーザー表示名 | | ||
**icon_file_id** | [**uuid::Uuid**](uuid::Uuid.md) | アイコンファイルUUID | | ||
**bot** | **bool** | BOTかどうか | | ||
**state** | [**crate::models::UserAccountState**](UserAccountState.md) | | | ||
**permissions** | [**Vec<crate::models::UserPermission>**](UserPermission.md) | 所有している権限の配列 | | ||
**home_channel** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | ホームチャンネル | | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# OidcUserInfo | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**sub** | [**uuid::Uuid**](uuid::Uuid.md) | ユーザーUUID | | ||
**name** | **String** | ユーザー名 | | ||
**preferred_username** | **String** | ユーザー名 | | ||
**picture** | **String** | アイコン画像URL | | ||
**updated_at** | Option<**i64**> | 更新日時 | [optional] | ||
**traq** | Option<[**crate::models::OidcTraqUserInfo**](OIDCTraqUserInfo.md)> | | [optional] | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Session | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**state** | **String** | 状態 | | ||
**session_id** | **String** | セッションID | | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
/* | ||
* traQ v3 | ||
* | ||
* traQ v3 API | ||
* | ||
* The version of the OpenAPI document: 3.0 | ||
* | ||
* Generated by: https://openapi-generator.tech | ||
*/ | ||
|
||
/// OidcTraqUserInfo : traQ特有のユーザー詳細情報 | ||
|
||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] | ||
pub struct OidcTraqUserInfo { | ||
/// 自己紹介(biography) | ||
#[serde(rename = "bio")] | ||
pub bio: String, | ||
/// 所属グループのUUIDの配列 | ||
#[serde(rename = "groups")] | ||
pub groups: Vec<uuid::Uuid>, | ||
/// タグリスト | ||
#[serde(rename = "tags")] | ||
pub tags: Vec<crate::models::UserTag>, | ||
/// 最終オンライン日時 | ||
#[serde(rename = "last_online", deserialize_with = "Option::deserialize")] | ||
pub last_online: Option<String>, | ||
/// Twitter ID | ||
#[serde(rename = "twitter_id")] | ||
pub twitter_id: String, | ||
/// ユーザー表示名 | ||
#[serde(rename = "display_name")] | ||
pub display_name: String, | ||
/// アイコンファイルUUID | ||
#[serde(rename = "icon_file_id")] | ||
pub icon_file_id: uuid::Uuid, | ||
/// BOTかどうか | ||
#[serde(rename = "bot")] | ||
pub bot: bool, | ||
#[serde(rename = "state")] | ||
pub state: crate::models::UserAccountState, | ||
/// 所有している権限の配列 | ||
#[serde(rename = "permissions")] | ||
pub permissions: Vec<crate::models::UserPermission>, | ||
/// ホームチャンネル | ||
#[serde(rename = "home_channel", deserialize_with = "Option::deserialize")] | ||
pub home_channel: Option<uuid::Uuid>, | ||
} | ||
|
||
impl OidcTraqUserInfo { | ||
/// traQ特有のユーザー詳細情報 | ||
pub fn new( | ||
bio: String, | ||
groups: Vec<uuid::Uuid>, | ||
tags: Vec<crate::models::UserTag>, | ||
last_online: Option<String>, | ||
twitter_id: String, | ||
display_name: String, | ||
icon_file_id: uuid::Uuid, | ||
bot: bool, | ||
state: crate::models::UserAccountState, | ||
permissions: Vec<crate::models::UserPermission>, | ||
home_channel: Option<uuid::Uuid>, | ||
) -> OidcTraqUserInfo { | ||
OidcTraqUserInfo { | ||
bio, | ||
groups, | ||
tags, | ||
last_online, | ||
twitter_id, | ||
display_name, | ||
icon_file_id, | ||
bot, | ||
state, | ||
permissions, | ||
home_channel, | ||
} | ||
} | ||
} |
Oops, something went wrong.