mirror of
https://github.com/mii443/vrchatapi-rust.git
synced 2025-08-22 15:45:35 +00:00
* add formatting Signed-off-by: C0D3 M4513R <28912031+C0D3-M4513R@users.noreply.github.com> * Apply Changes --------- Signed-off-by: C0D3 M4513R <28912031+C0D3-M4513R@users.noreply.github.com>
37 lines
1.0 KiB
Rust
37 lines
1.0 KiB
Rust
/*
|
|
* VRChat API Documentation
|
|
*
|
|
*
|
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
* Generated by: https://openapi-generator.tech
|
|
*/
|
|
|
|
use crate::models;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Clone, Default, Debug, PartialEq, 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,
|
|
}
|
|
}
|
|
}
|