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

/// FriendRequestRemovedEventData : The data associated with the friend request.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FriendRequestRemovedEventData {
    #[serde(rename = "sender")]
    pub sender: Box<models::Player>,
    #[serde(rename = "receiver")]
    pub receiver: Box<models::Player>,
}

impl FriendRequestRemovedEventData {
    /// The data associated with the friend request.
    pub fn new(sender: models::Player, receiver: models::Player) -> FriendRequestRemovedEventData {
        FriendRequestRemovedEventData {
            sender: Box::new(sender),
            receiver: Box::new(receiver),
        }
    }
}