feature/upstream-service #13
@@ -10,12 +10,15 @@ pub struct AuthenticatedRequestInfo {
|
||||
pub user_id: Uuid,
|
||||
}
|
||||
|
||||
impl FromRequestParts<()> for AuthenticatedRequestInfo {
|
||||
impl<S> FromRequestParts<S> for AuthenticatedRequestInfo
|
||||
where
|
||||
S: Send + Sync,
|
||||
{
|
||||
type Rejection = StatusCode;
|
||||
|
||||
async fn from_request_parts(
|
||||
parts: &mut axum::http::request::Parts,
|
||||
_state: &(),
|
||||
_state: &S,
|
||||
) -> Result<Self, Self::Rejection> {
|
||||
let request_info = parts
|
||||
.extensions
|
||||
|
||||
Reference in New Issue
Block a user