Skip to main content

azisaba_graph/models/
list_patch_notes_200_response.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ListPatchNotes200Response {
16    #[serde(rename = "items")]
17    pub items: Vec<models::PatchNote>,
18    /// The cursor for retrieving the next page, or `null` if no more results are available.
19    #[serde(rename = "nextCursor", deserialize_with = "Option::deserialize")]
20    pub next_cursor: Option<String>,
21}
22
23impl ListPatchNotes200Response {
24    pub fn new(items: Vec<models::PatchNote>, next_cursor: Option<String>) -> ListPatchNotes200Response {
25        ListPatchNotes200Response {
26            items,
27            next_cursor,
28        }
29    }
30}
31