vrchatapi 1.22.2-nightly.2

VRChat API Client for Rust
Documentation
use crate::models;
use serde::{Deserialize, Serialize};

#[serde_with::serde_as]
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct InfoPushDataPromotionNotification {
    #[serde(rename = "body")]
    pub body: String,
    #[serde(rename = "command")]
    pub command: String,
    #[serde(rename = "imageUrl")]
    pub image_url: String,
    #[serde(rename = "parameter")]
    pub parameter: String,
    #[serde(rename = "title")]
    pub title: String,
}

impl InfoPushDataPromotionNotification {
    pub fn new(
        body: String,
        command: String,
        image_url: String,
        parameter: String,
        title: String,
    ) -> InfoPushDataPromotionNotification {
        InfoPushDataPromotionNotification {
            body,
            command,
            image_url,
            parameter,
            title,
        }
    }
}