aboutsummaryrefslogtreecommitdiff
path: root/src/api/admin/key.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/admin/key.rs')
-rw-r--r--src/api/admin/key.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/api/admin/key.rs b/src/api/admin/key.rs
index 1e910d52..be37088b 100644
--- a/src/api/admin/key.rs
+++ b/src/api/admin/key.rs
@@ -203,28 +203,27 @@ async fn key_info_results(garage: &Arc<Garage>, key: Key) -> Result<Response<Bod
}
#[derive(Serialize)]
+#[serde(rename_all = "camelCase")]
struct GetKeyInfoResult {
name: String,
- #[serde(rename = "accessKeyId")]
access_key_id: String,
- #[serde(rename = "secretAccessKey")]
secret_access_key: String,
permissions: KeyPerm,
buckets: Vec<KeyInfoBucketResult>,
}
#[derive(Serialize, Deserialize)]
+#[serde(rename_all = "camelCase")]
struct KeyPerm {
- #[serde(rename = "createBucket", default)]
+ #[serde(default)]
create_bucket: bool,
}
#[derive(Serialize)]
+#[serde(rename_all = "camelCase")]
struct KeyInfoBucketResult {
id: String,
- #[serde(rename = "globalAliases")]
global_aliases: Vec<String>,
- #[serde(rename = "localAliases")]
local_aliases: Vec<String>,
permissions: ApiBucketKeyPerm,
}