diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/protocols/ServerHttpProtocolGenerator.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/protocols/ServerHttpProtocolGenerator.kt index f980f268463f1b1b2ba5c2935e61805e6506e770..64e9c96460e5f2caa27822573d62c1694bb63327 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/protocols/ServerHttpProtocolGenerator.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/protocols/ServerHttpProtocolGenerator.kt @@ -157,7 +157,7 @@ private class ServerHttpProtocolImplGenerator( rustTemplate( """ ##[derive(Debug)] - pub struct $inputName(pub #{I}); + pub(crate) struct $inputName(#{I}); ##[#{AsyncTrait}::async_trait] impl #{AxumCore}::extract::FromRequest for $inputName where @@ -225,7 +225,7 @@ private class ServerHttpProtocolImplGenerator( rustTemplate( """ - pub enum $outputName { + pub(crate) enum $outputName { Output(#{O}), Error(#{E}) } @@ -260,7 +260,7 @@ private class ServerHttpProtocolImplGenerator( rustTemplate( """ - pub struct $outputName(pub #{O}); + pub(crate) struct $outputName(#{O}); ##[#{AsyncTrait}::async_trait] impl #{AxumCore}::response::IntoResponse for $outputName { fn into_response(self) -> #{AxumCore}::response::Response {