pub use serde::{Serialize,Deserialize}; #[derive(Deserialize)] pub struct AuthorizationRequestQuery { response_type: String, client_id: String, redirect_uri: String, scope: Option, state: Option } #[derive(Serialize)] pub struct AuthorizationResponse { response_type: String, state: Option, code: Option, } #[derive(Serialize)] pub enum AuthorizationResponseErrorType { InvalidRequest, UnauthorizedClient, AccessDenied, UnsupportedResponseType, InvalidScope, ServerError, TemporarilyUnavailable } #[derive(Serialize)] pub struct AuthorizationResponseError { state: Option, error: AuthorizationResponseErrorType } #[derive(Deserialize)] pub struct TokenRequestParameters { } #[derive(Serialize)] pub struct TokenResponse { }