aws_smithy_http_server/plugin/
identity.rs

1/*
2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6use super::{HttpMarker, ModelMarker, Plugin};
7
8/// A [`Plugin`] that maps a service to itself.
9#[derive(Debug)]
10pub struct IdentityPlugin;
11
12impl<Ser, Op, S> Plugin<Ser, Op, S> for IdentityPlugin {
13    type Output = S;
14
15    fn apply(&self, svc: S) -> S {
16        svc
17    }
18}
19
20impl ModelMarker for IdentityPlugin {}
21impl HttpMarker for IdentityPlugin {}