mirror of
https://github.com/mii443/vrchatapi-rust.git
synced 2025-08-22 23:55:33 +00:00
Set OpenAPI version back to 6.2.1 and fix GitLab CI
This commit is contained in:
38
src/models/create_group_announcement_request.rs
Normal file
38
src/models/create_group_announcement_request.rs
Normal file
@ -0,0 +1,38 @@
|
||||
/*
|
||||
* VRChat API Documentation
|
||||
*
|
||||
*
|
||||
* Contact: me@ariesclark.com
|
||||
* Generated by: https://openapi-generator.tech
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
||||
pub struct CreateGroupAnnouncementRequest {
|
||||
/// Announcement title
|
||||
#[serde(rename = "title")]
|
||||
pub title: String,
|
||||
/// Announcement text
|
||||
#[serde(rename = "text", skip_serializing_if = "Option::is_none")]
|
||||
pub text: Option<String>,
|
||||
#[serde(rename = "imageId", skip_serializing_if = "Option::is_none")]
|
||||
pub image_id: Option<String>,
|
||||
/// Send notification to group members.
|
||||
#[serde(rename = "sendNotification", skip_serializing_if = "Option::is_none")]
|
||||
pub send_notification: Option<bool>,
|
||||
}
|
||||
|
||||
impl CreateGroupAnnouncementRequest {
|
||||
pub fn new(title: String) -> CreateGroupAnnouncementRequest {
|
||||
CreateGroupAnnouncementRequest {
|
||||
title,
|
||||
text: None,
|
||||
image_id: None,
|
||||
send_notification: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user