summaryrefslogtreecommitdiffstats
path: root/src/generated
diff options
context:
space:
mode:
authorCyborus <cyborus@noreply.codeberg.org>2024-05-11 17:56:37 +0200
committerCyborus <cyborus@noreply.codeberg.org>2024-05-11 17:56:37 +0200
commit80cba9a6c32a199aa343ab3fe1f9f204fe42a84d (patch)
tree71d0b8665c0e5c8384421b710a36723f235482ea /src/generated
parentMerge pull request 'bump version to 0.2.0' (#52) from bump-0.2.0 into main (diff)
parentchore: ✨ (diff)
downloadforgejo-api-80cba9a6c32a199aa343ab3fe1f9f204fe42a84d.tar.xz
forgejo-api-80cba9a6c32a199aa343ab3fe1f9f204fe42a84d.zip
Merge pull request 'feat: implement ssh_url deserialization to `url::Url` instead of `String`' (#53) from Aviac/forgejo-api:feat/parse-ssh-url into main
Reviewed-on: https://codeberg.org/Cyborus/forgejo-api/pulls/53 Reviewed-by: Cyborus <cyborus@noreply.codeberg.org>
Diffstat (limited to 'src/generated')
-rw-r--r--src/generated/structs.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/generated/structs.rs b/src/generated/structs.rs
index 1445c47..e727b5d 100644
--- a/src/generated/structs.rs
+++ b/src/generated/structs.rs
@@ -2278,7 +2278,8 @@ pub struct Repository {
pub release_counter: Option<u64>,
pub repo_transfer: Option<RepoTransfer>,
pub size: Option<u64>,
- pub ssh_url: Option<String>,
+ #[serde(deserialize_with = "crate::deserialize_optional_ssh_url")]
+ pub ssh_url: Option<url::Url>,
pub stars_count: Option<u64>,
pub template: Option<bool>,
#[serde(with = "time::serde::rfc3339::option")]