Trait WechatType
Source pub trait WechatType {
// Required methods
fn get_redirect_url(
&self,
redirect_uri: String,
state: Option<String>,
) -> String;
fn get_access_token<'life0, 'async_trait>(
&'life0 self,
code: String,
) -> Pin<Box<dyn Future<Output = Result<AccessTokenResponse, Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn refresh_access_token<'life0, 'async_trait>(
&'life0 self,
appid: String,
) -> Pin<Box<dyn Future<Output = Result<AccessTokenResponse, Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn check_access_token<'life0, 'async_trait>(
&'life0 self,
openid: String,
) -> Pin<Box<dyn Future<Output = Result<AuthResponse, Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_user_info<'life0, 'async_trait>(
&'life0 self,
openid: String,
) -> Pin<Box<dyn Future<Output = Result<UserInfoResponse, Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}