diff options
author | Cyborus <cyborus@cyborus.xyz> | 2024-04-27 18:11:58 +0200 |
---|---|---|
committer | Cyborus <cyborus@cyborus.xyz> | 2024-04-27 18:16:51 +0200 |
commit | 8cd8207fa096be8d02c165d1ae66881fbb1bb443 (patch) | |
tree | 43acaae7499a3b1380de5de8f3a97d606d7a0b46 /src | |
parent | Merge pull request 'add `CreateHookOptionConfig` required properties as field... (diff) | |
download | forgejo-api-8cd8207fa096be8d02c165d1ae66881fbb1bb443.tar.xz forgejo-api-8cd8207fa096be8d02c165d1ae66881fbb1bb443.zip |
add `object_format_name` back in
Diffstat (limited to 'src')
-rw-r--r-- | src/generated/structs.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/generated/structs.rs b/src/generated/structs.rs index cda1845..1445c47 100644 --- a/src/generated/structs.rs +++ b/src/generated/structs.rs @@ -688,6 +688,7 @@ pub struct CreateRepoOption { pub license: Option<String>, /// Name of the repository to create pub name: String, + pub object_format_name: Option<ObjectFormatName>, /// Whether the repository is private pub private: Option<bool>, /// Readme of the repository to create @@ -1859,6 +1860,15 @@ pub struct OAuth2Application { pub redirect_uris: Option<Vec<String>>, } +/// ObjectFormatName of the underlying git repository + +#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +pub enum ObjectFormatName { + #[serde(rename = "sha1")] + Sha1, + #[serde(rename = "sha256")] + Sha256, +} /// Organization represents an organization #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct Organization { @@ -2256,6 +2266,7 @@ pub struct Repository { #[serde(with = "time::serde::rfc3339::option")] pub mirror_updated: Option<time::OffsetDateTime>, pub name: Option<String>, + pub object_format_name: Option<ObjectFormatName>, pub open_issues_count: Option<u64>, pub open_pr_counter: Option<u64>, #[serde(deserialize_with = "crate::none_if_blank_url")] |