openapi_github/models/
migrations_set_lfs_preference_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 MigrationsSetLfsPreferenceRequest {
16    /// Whether to store large files during the import. `opt_in` means large files will be stored using Git LFS. `opt_out` means large files will be removed during the import.
17    #[serde(rename = "use_lfs")]
18    pub use_lfs: UseLfs,
19}
20
21impl MigrationsSetLfsPreferenceRequest {
22    pub fn new(use_lfs: UseLfs) -> MigrationsSetLfsPreferenceRequest {
23        MigrationsSetLfsPreferenceRequest {
24            use_lfs,
25        }
26    }
27}
28/// Whether to store large files during the import. `opt_in` means large files will be stored using Git LFS. `opt_out` means large files will be removed during the import.
29#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
30pub enum UseLfs {
31    #[serde(rename = "opt_in")]
32    In,
33    #[serde(rename = "opt_out")]
34    Out,
35}
36
37impl Default for UseLfs {
38    fn default() -> UseLfs {
39        Self::In
40    }
41}
42