winterbaume_ec2instanceconnect/
wire.rs1#![allow(
6 dead_code,
7 unused_variables,
8 clippy::let_and_return,
9 clippy::single_match
10)]
11
12use winterbaume_core::MockResponse;
13
14pub use super::model::*;
15
16pub fn serialize_send_s_s_h_public_key_response(result: &SendSSHPublicKeyResponse) -> MockResponse {
18 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
19 MockResponse::json(200, body)
20}
21
22pub fn serialize_send_serial_console_s_s_h_public_key_response(
24 result: &SendSerialConsoleSSHPublicKeyResponse,
25) -> MockResponse {
26 let body = serde_json::to_string(result).unwrap_or_else(|_| "{}".to_string());
27 MockResponse::json(200, body)
28}