diff options
author | Cyborus <cyborus@cyborus.xyz> | 2024-04-26 18:56:49 +0200 |
---|---|---|
committer | Cyborus <cyborus@cyborus.xyz> | 2024-04-26 18:56:49 +0200 |
commit | e5cd248c8f6b75bd50057f317887f36ccdaf8601 (patch) | |
tree | 2ed7a5edd3506276dafbba4ebd83de4c93ed6cbe | |
parent | correctly generate field type names for referenced enums (diff) | |
download | forgejo-api-e5cd248c8f6b75bd50057f317887f36ccdaf8601.tar.xz forgejo-api-e5cd248c8f6b75bd50057f317887f36ccdaf8601.zip |
regenerate source
-rw-r--r-- | src/generated/structs.rs | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/generated/structs.rs b/src/generated/structs.rs index a4d920c..bcb8682 100644 --- a/src/generated/structs.rs +++ b/src/generated/structs.rs @@ -793,6 +793,19 @@ pub struct Cron { pub schedule: Option<String>, } +#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +pub enum DefaultMergeStyle { + #[serde(rename = "merge")] + Merge, + #[serde(rename = "rebase")] + Rebase, + #[serde(rename = "rebase-merge")] + RebaseMerge, + #[serde(rename = "squash")] + Squash, + #[serde(rename = "fast-forward-only")] + FastForwardOnly, +} /// DeleteEmailOption options when deleting email addresses #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct DeleteEmailOption { @@ -1039,8 +1052,7 @@ pub struct EditRepoOption { pub default_branch: Option<String>, /// set to `true` to delete pr branch after merge by default pub default_delete_branch_after_merge: Option<bool>, - /// set to a merge style to be used by this repository: "merge", "rebase", "rebase-merge", "squash", or "fast-forward-only". - pub default_merge_style: Option<String>, + pub default_merge_style: Option<DefaultMergeStyle>, /// a short description of the repository. pub description: Option<String>, /// enable prune - remove obsolete remote-tracking references @@ -2212,7 +2224,7 @@ pub struct Repository { pub default_allow_maintainer_edit: Option<bool>, pub default_branch: Option<String>, pub default_delete_branch_after_merge: Option<bool>, - pub default_merge_style: Option<String>, + pub default_merge_style: Option<DefaultMergeStyle>, pub description: Option<String>, pub empty: Option<bool>, pub external_tracker: Option<ExternalTracker>, |