Skip to main content

azisaba_graph/models/
friend_request_added_event.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/// FriendRequestAddedEvent : Represents an event indicating that a friend request was added. Requires the `stream:read` and `players:read` scopes to receive this event. 
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FriendRequestAddedEvent {
17    #[serde(rename = "data")]
18    pub data: Box<models::FriendRequestAddedEventData>,
19}
20
21impl FriendRequestAddedEvent {
22    /// Represents an event indicating that a friend request was added. Requires the `stream:read` and `players:read` scopes to receive this event. 
23    pub fn new(data: models::FriendRequestAddedEventData) -> FriendRequestAddedEvent {
24        FriendRequestAddedEvent {
25            data: Box::new(data),
26        }
27    }
28}
29