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