use serde::{Deserialize, Serialize}; /*
                                      * Cloud Resource Manager API
                                      *
                                      * Creates, reads, and updates metadata for Google Cloud Platform resource containers.
                                      *
                                      * The version of the OpenAPI document: v3
                                      *
                                      * Generated by: https://openapi-generator.tech
                                      */

use crate::google_rest_apis::cloudresourcemanager_v3::models;

/// ListFoldersResponse : The ListFolders response message.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ListFoldersResponse {
    /// A possibly paginated list of folders that are direct descendants of the specified parent resource.
    #[serde(rename = "folders", skip_serializing_if = "Option::is_none")]
    pub folders: Option<Vec<models::Folder>>,
    /// A pagination token returned from a previous call to `ListFolders` that indicates from where listing should continue.
    #[serde(rename = "nextPageToken", skip_serializing_if = "Option::is_none")]
    pub next_page_token: Option<String>,
}

impl ListFoldersResponse {
    /// The ListFolders response message.
    pub fn new() -> ListFoldersResponse {
        ListFoldersResponse {
            folders: None,
            next_page_token: None,
        }
    }
}
