Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: regenerate #12

Merged
merged 1 commit into from
Dec 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ docs/StampApi.md
docs/StampHistoryEntry.md
docs/StampPalette.md
docs/StampStats.md
docs/StampWithThumbnail.md
docs/StarApi.md
docs/SubscribersChangedEvent.md
docs/Tag.md
Expand Down Expand Up @@ -261,6 +262,7 @@ src/models/stamp.rs
src/models/stamp_history_entry.rs
src/models/stamp_palette.rs
src/models/stamp_stats.rs
src/models/stamp_with_thumbnail.rs
src/models/subscribers_changed_event.rs
src/models/tag.rs
src/models/thumbnail_info.rs
Expand Down
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ Class | Method | HTTP request | Description
- [StampHistoryEntry](StampHistoryEntry.md)
- [StampPalette](StampPalette.md)
- [StampStats](StampStats.md)
- [StampWithThumbnail](StampWithThumbnail.md)
- [SubscribersChangedEvent](SubscribersChangedEvent.md)
- [Tag](Tag.md)
- [ThumbnailInfo](ThumbnailInfo.md)
Expand Down
4 changes: 2 additions & 2 deletions docs/StampApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ Name | Type | Description | Required | Notes

## get_stamps

> Vec<crate::models::Stamp> get_stamps(include_unicode, r#type)
> Vec<crate::models::StampWithThumbnail> get_stamps(include_unicode, r#type)
スタンプリストを取得

スタンプのリストを取得します。
Expand All @@ -494,7 +494,7 @@ Name | Type | Description | Required | Notes

### Return type

[**Vec<crate::models::Stamp>**](Stamp.md)
[**Vec<crate::models::StampWithThumbnail>**](StampWithThumbnail.md)

### Authorization

Expand Down
18 changes: 18 additions & 0 deletions docs/StampWithThumbnail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# StampWithThumbnail

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | [**uuid::Uuid**](uuid::Uuid.md) | スタンプUUID |
**name** | **String** | スタンプ名 |
**creator_id** | [**uuid::Uuid**](uuid::Uuid.md) | 作成者UUID |
**created_at** | **String** | 作成日時 |
**updated_at** | **String** | 更新日時 |
**file_id** | [**uuid::Uuid**](uuid::Uuid.md) | ファイルUUID |
**is_unicode** | **bool** | Unicode絵文字か |
**has_thumbnail** | **bool** | サムネイルの有無 |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 1 addition & 1 deletion src/apis/stamp_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ pub async fn get_stamps(
configuration: &configuration::Configuration,
include_unicode: Option<bool>,
r#type: Option<&str>,
) -> Result<Vec<crate::models::Stamp>, Error<GetStampsError>> {
) -> Result<Vec<crate::models::StampWithThumbnail>, Error<GetStampsError>> {
let local_var_configuration = configuration;

let local_var_client = &local_var_configuration.client;
Expand Down
2 changes: 2 additions & 0 deletions src/models/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ pub mod stamp_palette;
pub use self::stamp_palette::StampPalette;
pub mod stamp_stats;
pub use self::stamp_stats::StampStats;
pub mod stamp_with_thumbnail;
pub use self::stamp_with_thumbnail::StampWithThumbnail;
pub mod subscribers_changed_event;
pub use self::subscribers_changed_event::SubscribersChangedEvent;
pub mod tag;
Expand Down
64 changes: 64 additions & 0 deletions src/models/stamp_with_thumbnail.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/*
* traQ v3
*
* traQ v3 API
*
* The version of the OpenAPI document: 3.0
*
* Generated by: https://openapi-generator.tech
*/

/// StampWithThumbnail : スタンプ情報とサムネイルの有無

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct StampWithThumbnail {
/// スタンプUUID
#[serde(rename = "id")]
pub id: uuid::Uuid,
/// スタンプ名
#[serde(rename = "name")]
pub name: String,
/// 作成者UUID
#[serde(rename = "creatorId")]
pub creator_id: uuid::Uuid,
/// 作成日時
#[serde(rename = "createdAt")]
pub created_at: String,
/// 更新日時
#[serde(rename = "updatedAt")]
pub updated_at: String,
/// ファイルUUID
#[serde(rename = "fileId")]
pub file_id: uuid::Uuid,
/// Unicode絵文字か
#[serde(rename = "isUnicode")]
pub is_unicode: bool,
/// サムネイルの有無
#[serde(rename = "hasThumbnail")]
pub has_thumbnail: bool,
}

impl StampWithThumbnail {
/// スタンプ情報とサムネイルの有無
pub fn new(
id: uuid::Uuid,
name: String,
creator_id: uuid::Uuid,
created_at: String,
updated_at: String,
file_id: uuid::Uuid,
is_unicode: bool,
has_thumbnail: bool,
) -> StampWithThumbnail {
StampWithThumbnail {
id,
name,
creator_id,
created_at,
updated_at,
file_id,
is_unicode,
has_thumbnail,
}
}
}