Derive Clone for http requests structs

So they don't prevent a Service from implementing Clone.
This commit is contained in:
Kévin Commaille
2022-10-17 11:30:03 +02:00
committed by Quentin Gliech
parent 0829ab7e27
commit 99f2ca3d57
3 changed files with 4 additions and 3 deletions
@@ -45,6 +45,7 @@ impl<S, E> Error<S, E> {
}
}
#[derive(Clone)]
pub struct CatchHttpCodes<S, M> {
inner: S,
bounds: (Bound<StatusCode>, Bound<StatusCode>),
+2 -2
View File
@@ -105,13 +105,13 @@ impl CodeChallengeMethodExt for PkceCodeChallengeMethod {
}
}
#[derive(Serialize, Deserialize)]
#[derive(Clone, Serialize, Deserialize)]
pub struct AuthorizationRequest {
pub code_challenge_method: PkceCodeChallengeMethod,
pub code_challenge: String,
}
#[derive(Serialize, Deserialize)]
#[derive(Clone, Serialize, Deserialize)]
pub struct TokenRequest {
pub code_challenge_verifier: String,
}
+1 -1
View File
@@ -612,7 +612,7 @@ pub struct IntrospectionResponse {
/// [Pushed Authorization Request Endpoint]: https://datatracker.ietf.org/doc/html/rfc9126
#[serde_as]
#[skip_serializing_none]
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq)]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
pub struct PushedAuthorizationResponse {
/// The `request_uri` to use for the request to the authorization endpoint.
pub request_uri: String,