sfr_types/oauth.rs
1//! The type around OAuth process.
2
3use serde::Deserialize;
4
5/// The type that represents a query when redirected.
6#[derive(Deserialize, Debug, Clone)]
7pub struct OauthRedirectQuery {
8 /// The temporary authorization code.
9 code: String,
10}
11
12impl OauthRedirectQuery {
13 /// Takes the reference of the `code`.
14 pub fn code(&self) -> &str {
15 self.code.as_str()
16 }
17}