diff options
author | Cyborus <cyborus@cyborus.xyz> | 2024-08-04 18:08:52 +0200 |
---|---|---|
committer | Cyborus <cyborus@cyborus.xyz> | 2024-08-04 18:08:52 +0200 |
commit | 5796178ec2dfacfff9bd4e77f8c02b35036adad3 (patch) | |
tree | c9177b304ca25f5ca250261926a4a1fd3cb960ba /src/generated | |
parent | fix: add url format to new definitions (diff) | |
download | forgejo-api-5796178ec2dfacfff9bd4e77f8c02b35036adad3.tar.xz forgejo-api-5796178ec2dfacfff9bd4e77f8c02b35036adad3.zip |
chore: generate
Diffstat (limited to 'src/generated')
-rw-r--r-- | src/generated/structs.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/generated/structs.rs b/src/generated/structs.rs index 0b62017..b99c2a0 100644 --- a/src/generated/structs.rs +++ b/src/generated/structs.rs @@ -413,7 +413,8 @@ pub struct CommitStatus { pub description: Option<String>, pub id: Option<i64>, pub status: Option<String>, - pub target_url: Option<String>, + #[serde(deserialize_with = "crate::none_if_blank_url")] + pub target_url: Option<url::Url>, #[serde(with = "time::serde::rfc3339::option")] pub updated_at: Option<time::OffsetDateTime>, #[serde(deserialize_with = "crate::none_if_blank_url")] @@ -2847,8 +2848,7 @@ pub struct WikiPage { pub html_url: Option<url::Url>, pub last_commit: Option<WikiCommit>, pub sidebar: Option<String>, - #[serde(deserialize_with = "crate::none_if_blank_url")] - pub sub_url: Option<url::Url>, + pub sub_url: Option<String>, pub title: Option<String>, } @@ -2858,8 +2858,7 @@ pub struct WikiPageMetaData { #[serde(deserialize_with = "crate::none_if_blank_url")] pub html_url: Option<url::Url>, pub last_commit: Option<WikiCommit>, - #[serde(deserialize_with = "crate::none_if_blank_url")] - pub sub_url: Option<url::Url>, + pub sub_url: Option<String>, pub title: Option<String>, } |