Struct oxide_auth::primitives::registrar::PreGrant
source · pub struct PreGrant {
pub client_id: String,
pub redirect_uri: RegisteredUrl,
pub scope: Scope,
}
Expand description
These are the parameters presented to the resource owner when confirming or denying a grant request. Together with the owner_id and a computed expiration time stamp, this will form a grant of some sort. In the case of the authorization code grant flow, it will be an authorization code at first, which can be traded for an access code by the client acknowledged.
Fields§
§client_id: String
The registered client id.
redirect_uri: RegisteredUrl
The redirection url associated with the above client.
scope: Scope
A scope admissible for the above client.
Trait Implementations§
source§impl PartialEq<PreGrant> for PreGrant
impl PartialEq<PreGrant> for PreGrant
source§impl PartialOrd<PreGrant> for PreGrant
impl PartialOrd<PreGrant> for PreGrant
source§fn partial_cmp(&self, rhs: &PreGrant) -> Option<Ordering>
fn partial_cmp(&self, rhs: &PreGrant) -> Option<Ordering>
PreGrant
is compared by scope if client_id
and redirect_uri
are equal.
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for PreGrant
impl StructuralEq for PreGrant
impl StructuralPartialEq for PreGrant
Auto Trait Implementations§
impl RefUnwindSafe for PreGrant
impl Send for PreGrant
impl Sync for PreGrant
impl Unpin for PreGrant
impl UnwindSafe for PreGrant
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