mirror of
https://github.com/mii443/vrchatapi-rust.git
synced 2025-08-22 15:45:35 +00:00
47 lines
1.2 KiB
Rust
47 lines
1.2 KiB
Rust
/*
|
|
* VRChat API Documentation
|
|
*
|
|
*
|
|
* The version of the OpenAPI document: 1.4.1
|
|
* Contact: me@ruby.js.org
|
|
* Generated by: https://openapi-generator.tech
|
|
*/
|
|
|
|
|
|
|
|
|
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
|
pub struct InviteMessage {
|
|
#[serde(rename = "canBeUpdated")]
|
|
pub can_be_updated: bool,
|
|
#[serde(rename = "id")]
|
|
pub id: String,
|
|
#[serde(rename = "message")]
|
|
pub message: String,
|
|
#[serde(rename = "messageType")]
|
|
pub message_type: crate::models::InviteMessageType,
|
|
/// Changes to 60 when updated, although probably server-side configurable.
|
|
#[serde(rename = "remainingCooldownMinutes")]
|
|
pub remaining_cooldown_minutes: i32,
|
|
#[serde(rename = "slot")]
|
|
pub slot: i32,
|
|
#[serde(rename = "updatedAt")]
|
|
pub updated_at: String,
|
|
}
|
|
|
|
impl InviteMessage {
|
|
pub fn new(can_be_updated: bool, id: String, message: String, message_type: crate::models::InviteMessageType, remaining_cooldown_minutes: i32, slot: i32, updated_at: String) -> InviteMessage {
|
|
InviteMessage {
|
|
can_be_updated,
|
|
id,
|
|
message,
|
|
message_type,
|
|
remaining_cooldown_minutes,
|
|
slot,
|
|
updated_at,
|
|
}
|
|
}
|
|
}
|
|
|
|
|