antimatter_api 2.0.13

Interact with the Antimatter Cloud API
Documentation
/*
 * Antimatter Public API
 *
 * Interact with the Antimatter Cloud API
 *
 * The version of the OpenAPI document: 2.0.13
 * Contact: support@antimatter.io
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// WorkspaceObjectList : A list of objects from a workspace
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct WorkspaceObjectList {
    #[serde(rename = "nextId")]
    pub next_id: String,
    #[serde(rename = "hasMore")]
    pub has_more: bool,
    #[serde(rename = "items")]
    pub items: Vec<models::WorkspaceObject>,
}

impl WorkspaceObjectList {
    /// A list of objects from a workspace
    pub fn new(next_id: String, has_more: bool, items: Vec<models::WorkspaceObject>) -> WorkspaceObjectList {
        WorkspaceObjectList {
            next_id,
            has_more,
            items,
        }
    }
}