Skip to main content

azisaba_graph/models/
friend_added_event_data.rs

1/*
2 * Azisaba Graph API
3 *
4 * An API for connecting and sharing data across the Azisaba Network.
5 *
6 * The version of the OpenAPI document: 0.0.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// FriendAddedEventData : The data associated with the friendship.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FriendAddedEventData {
17    #[serde(rename = "player")]
18    pub player: Box<models::Player>,
19    #[serde(rename = "friend")]
20    pub friend: Box<models::Player>,
21}
22
23impl FriendAddedEventData {
24    /// The data associated with the friendship.
25    pub fn new(player: models::Player, friend: models::Player) -> FriendAddedEventData {
26        FriendAddedEventData {
27            player: Box::new(player),
28            friend: Box::new(friend),
29        }
30    }
31}
32