azisaba-graph 0.1.0-rc.16

An API for connecting and sharing data across the Azisaba Network.
Documentation
/*
 * Azisaba Graph API
 *
 * An API for connecting and sharing data across the Azisaba Network.
 *
 * The version of the OpenAPI document: 0.0.1
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// FriendRequestRejectedEvent : Represents an event indicating that a friend request was rejected. Requires the `stream:read` and `players:read` scopes to receive this event. 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FriendRequestRejectedEvent {
    #[serde(rename = "data")]
    pub data: Box<models::FriendRequestRejectedEventData>,
}

impl FriendRequestRejectedEvent {
    /// Represents an event indicating that a friend request was rejected. Requires the `stream:read` and `players:read` scopes to receive this event. 
    pub fn new(data: models::FriendRequestRejectedEventData) -> FriendRequestRejectedEvent {
        FriendRequestRejectedEvent {
            data: Box::new(data),
        }
    }
}