diff options
author | Cyborus <cyborus@noreply.codeberg.org> | 2024-05-11 17:56:37 +0200 |
---|---|---|
committer | Cyborus <cyborus@noreply.codeberg.org> | 2024-05-11 17:56:37 +0200 |
commit | 80cba9a6c32a199aa343ab3fe1f9f204fe42a84d (patch) | |
tree | 71d0b8665c0e5c8384421b710a36723f235482ea /src/generated | |
parent | Merge pull request 'bump version to 0.2.0' (#52) from bump-0.2.0 into main (diff) | |
parent | chore: ✨ (diff) | |
download | forgejo-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.rs | 3 |
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")] |