From 8df88cecd33eb63f09d60d3bbbb9f4b9e578f173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Natalie=20Klestrup=20R=C3=B6ijezon?= Date: Mon, 12 Feb 2024 14:59:45 +0100 Subject: [PATCH] Serialize TerminalSize fields as PascalCase MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Doesn't seem to affect anything for the real API-server, but it's what kubectl/client-go sends. Signed-off-by: Natalie Klestrup Röijezon --- kube-client/src/api/remote_command.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/kube-client/src/api/remote_command.rs b/kube-client/src/api/remote_command.rs index 299dffff9..a0a78572a 100644 --- a/kube-client/src/api/remote_command.rs +++ b/kube-client/src/api/remote_command.rs @@ -28,6 +28,7 @@ type TerminalSizeSender = mpsc::Sender; /// TerminalSize define the size of a terminal #[derive(Debug, Serialize, Deserialize)] #[cfg_attr(docsrs, doc(cfg(feature = "ws")))] +#[serde(rename_all = "PascalCase")] pub struct TerminalSize { /// width of the terminal pub width: u16,