Skip to main content

winterbaume_ec2instanceconnect/
wire.rs

1//! Auto-generated wire helpers from Smithy models.
2//! Do not edit manually. Regenerate with:
3//!   smithy-codegen gen-serializers winterbaume-ec2instanceconnect
4
5#![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
16/// Serialize response for awsJson protocol.
17pub 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
22/// Serialize response for awsJson protocol.
23pub 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}