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;

/// SearchFoldersResponse : The response message for searching folders.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SearchFoldersResponse {
    /// A possibly paginated folder search results. 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 `SearchFolders` that indicates from where searching should continue.
    #[serde(rename = "nextPageToken", skip_serializing_if = "Option::is_none")]
    pub next_page_token: Option<String>,
}

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