pub struct Grant<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Grant<'a>
impl<'a> Grant<'a>
pub async fn request( &self, auth_url: &str, grant: &GrantRequest, ) -> Result<GrantResponse>
pub async fn continue_grant( &self, continue_uri: &str, interact_ref: &str, access_token: Option<&str>, ) -> Result<ContinueResponse>
pub async fn cancel( &self, continue_uri: &str, access_token: Option<&str>, ) -> Result<()>
Auto Trait Implementations§
impl<'a> Freeze for Grant<'a>
impl<'a> !RefUnwindSafe for Grant<'a>
impl<'a> Send for Grant<'a>
impl<'a> Sync for Grant<'a>
impl<'a> Unpin for Grant<'a>
impl<'a> !UnwindSafe for Grant<'a>
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