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