Struct phabricator_oauth::PhabOAuthClient [−][src]
pub struct PhabOAuthClient { /* fields omitted */ }
Implementations
pub fn new(
phid: String,
secret: String,
redirect_url: String,
phabricator_url: String
) -> Result<PhabOAuthClient, PhabOAuthError>
pub async fn get_user(
&self,
token: &AccessToken
) -> Result<Option<PhabricatorUser>, PhabOAuthError>
Auto Trait Implementations
impl RefUnwindSafe for PhabOAuthClient
impl Send for PhabOAuthClient
impl Sync for PhabOAuthClient
impl Unpin for PhabOAuthClient
impl UnwindSafe for PhabOAuthClient
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more