summaryrefslogtreecommitdiffstats
path: root/src/generated/methods.rs
diff options
context:
space:
mode:
authorCyborus <cyborus@noreply.codeberg.org>2024-06-19 19:43:45 +0200
committerCyborus <cyborus@noreply.codeberg.org>2024-06-19 19:43:45 +0200
commit7678d59c98a77a73f29ac2c04468a85eab485ac3 (patch)
treec38dbfb4ad654675d6af3027c166651453a65c72 /src/generated/methods.rs
parentMerge pull request 'bump version to 0.3.0' (#58) from bump-0.3.0 into main (diff)
parentfix(swagger): `UserSettings` should not be a list (diff)
downloadforgejo-api-7678d59c98a77a73f29ac2c04468a85eab485ac3.tar.xz
forgejo-api-7678d59c98a77a73f29ac2c04468a85eab485ac3.zip
Merge pull request '`UserSettings` should not be a list' (#59) from user-settings into main
Reviewed-on: https://codeberg.org/Cyborus/forgejo-api/pulls/59
Diffstat (limited to 'src/generated/methods.rs')
-rw-r--r--src/generated/methods.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/generated/methods.rs b/src/generated/methods.rs
index c2404c9..96a3e18 100644
--- a/src/generated/methods.rs
+++ b/src/generated/methods.rs
@@ -7066,7 +7066,7 @@ impl crate::Forgejo {
}
/// Get user settings
- pub async fn get_user_settings(&self) -> Result<Vec<UserSettings>, ForgejoError> {
+ pub async fn get_user_settings(&self) -> Result<UserSettings, ForgejoError> {
let request = self.get("user/settings").build()?;
let response = self.execute(request).await?;
match response.status().as_u16() {
@@ -7081,7 +7081,7 @@ impl crate::Forgejo {
pub async fn update_user_settings(
&self,
body: UserSettingsOptions,
- ) -> Result<Vec<UserSettings>, ForgejoError> {
+ ) -> Result<UserSettings, ForgejoError> {
let request = self.patch("user/settings").json(&body).build()?;
let response = self.execute(request).await?;
match response.status().as_u16() {