open_wechat::credentialTrait GetStableAccessToken
Source pub trait GetStableAccessToken {
// Required methods
fn new<'async_trait>(
client: Client,
force_refresh: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>
where Self: Sized + 'async_trait;
fn access_token<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_force_refresh<'life0, 'async_trait>(
&'life0 self,
force_refresh: bool,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}