openapi_github/models/
codespaces_update_for_authenticated_user_request.rs

1/*
2 * GitHub's official OpenAPI spec + Octokit extension
3 *
4 * OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
5 *
6 * The version of the OpenAPI document: 16.6.0
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 CodespacesUpdateForAuthenticatedUserRequest {
16    /// A valid machine to transition this codespace to.
17    #[serde(rename = "machine", skip_serializing_if = "Option::is_none")]
18    pub machine: Option<String>,
19    /// Display name for this codespace
20    #[serde(rename = "display_name", skip_serializing_if = "Option::is_none")]
21    pub display_name: Option<String>,
22    /// Recently opened folders inside the codespace. It is currently used by the clients to determine the folder path to load the codespace in.
23    #[serde(rename = "recent_folders", skip_serializing_if = "Option::is_none")]
24    pub recent_folders: Option<Vec<String>>,
25}
26
27impl CodespacesUpdateForAuthenticatedUserRequest {
28    pub fn new() -> CodespacesUpdateForAuthenticatedUserRequest {
29        CodespacesUpdateForAuthenticatedUserRequest {
30            machine: None,
31            display_name: None,
32            recent_folders: None,
33        }
34    }
35}
36