pub struct Pending { /* private fields */ }
Expand description
Represents a valid, currently pending authorization request not bound to an owner. The frontend can signal a reponse using this object.
Implementations§
Source§impl Pending
impl Pending
Sourcepub fn as_solicitation(&self) -> Solicitation<'_>
pub fn as_solicitation(&self) -> Solicitation<'_>
Reference this pending state as a solicitation.
Sourcepub fn deny(self) -> Result<Url, Error>
pub fn deny(self) -> Result<Url, Error>
Denies the request, which redirects to the client for which the request originated.
Inform the backend about consent from a resource owner.
Use negotiated parameters to authorize a client for an owner. The endpoint SHOULD be the same endpoint as was used to create the pending request.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pending
impl RefUnwindSafe for Pending
impl Send for Pending
impl Sync for Pending
impl Unpin for Pending
impl UnwindSafe for Pending
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