Files
vrchatapi-rust/src/models/create_group_announcement_request.rs
C0D3 M4513R 9534a4ed8a Add formatting (#20)
* 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>
2024-09-28 19:01:11 +02:00

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,
}
}
}