pub struct AuthorizationCodeRow {Show 13 fields
pub code: String,
pub client_id: String,
pub subject: String,
pub redirect_uri: String,
pub resource: String,
pub scope: String,
pub provider: String,
pub code_challenge: String,
pub code_challenge_method: String,
pub provider_refresh_token: Option<String>,
pub created_at: i64,
pub expires_at: i64,
pub token_endpoint_auth_method: Option<String>,
}Fields§
§code: String§client_id: String§subject: String§redirect_uri: String§resource: String§scope: String§provider: String§code_challenge: String§code_challenge_method: String§provider_refresh_token: Option<String>§created_at: i64§expires_at: i64§token_endpoint_auth_method: Option<String>The token_endpoint_auth_method this grant was issued under, recorded
when /authorize resolved the client.
This is the contract of the grant, not a live view of the client: a client that later changes its declared method does not retroactively change grants that were already issued under the old one.
None means “unknown” — either a row written before schema v5, or a
client that could not be resolved at issuance time. /token then
resolves the client exactly as it did before this field existed. It
deliberately does not mean "none": defaulting an unknown row to
public would silently downgrade a confidential client.
Trait Implementations§
Source§impl Clone for AuthorizationCodeRow
impl Clone for AuthorizationCodeRow
Source§fn clone(&self) -> AuthorizationCodeRow
fn clone(&self) -> AuthorizationCodeRow
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 AuthorizationCodeRow
impl Debug for AuthorizationCodeRow
Source§impl<'de> Deserialize<'de> for AuthorizationCodeRow
impl<'de> Deserialize<'de> for AuthorizationCodeRow
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
Source§impl PartialEq for AuthorizationCodeRow
impl PartialEq for AuthorizationCodeRow
Source§fn eq(&self, other: &AuthorizationCodeRow) -> bool
fn eq(&self, other: &AuthorizationCodeRow) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AuthorizationCodeRow
impl Serialize for AuthorizationCodeRow
impl Eq for AuthorizationCodeRow
impl StructuralPartialEq for AuthorizationCodeRow
Auto Trait Implementations§
impl Freeze for AuthorizationCodeRow
impl RefUnwindSafe for AuthorizationCodeRow
impl Send for AuthorizationCodeRow
impl Sync for AuthorizationCodeRow
impl Unpin for AuthorizationCodeRow
impl UnsafeUnpin for AuthorizationCodeRow
impl UnwindSafe for AuthorizationCodeRow
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more