pub struct AuthorizationCode {
pub code: String,
pub client_id: String,
pub user_id: String,
pub redirect_uri: String,
pub scope: Vec<String>,
pub created_at: DateTime<Utc>,
pub expires_at: DateTime<Utc>,
pub pkce: Option<PkceChallenge>,
pub state: Option<String>,
}Expand description
Authorization code payload stored until exchange / consume. 兑换/消费前存储的授权码载荷。
Fields§
§code: StringOpaque authorization code value. 不透明授权码值。
client_id: StringIssuing client id. 签发方客户端 id。
user_id: StringResource owner id. 资源所有者 id。
redirect_uri: StringBound redirect URI. 绑定的重定向 URI。
scope: Vec<String>Granted scopes. 已授予的权限范围。
created_at: DateTime<Utc>Creation time. 创建时间。
expires_at: DateTime<Utc>Expiration time. 过期时间。
pkce: Option<PkceChallenge>Optional PKCE challenge. 可选 PKCE 挑战。
state: Option<String>Optional OAuth state.
可选 OAuth state。
Trait Implementations§
Source§impl Clone for AuthorizationCode
impl Clone for AuthorizationCode
Source§fn clone(&self) -> AuthorizationCode
fn clone(&self) -> AuthorizationCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthorizationCode
impl Debug for AuthorizationCode
Source§impl<'de> Deserialize<'de> for AuthorizationCode
impl<'de> Deserialize<'de> for AuthorizationCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AuthorizationCode
impl RefUnwindSafe for AuthorizationCode
impl Send for AuthorizationCode
impl Sync for AuthorizationCode
impl Unpin for AuthorizationCode
impl UnsafeUnpin for AuthorizationCode
impl UnwindSafe for AuthorizationCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more