pub trait CheckSessionKey {
const CHECK_SESSION_KEY: &'static str = "https://api.weixin.qq.com/wxa/checksession";
// Required method
fn check_session_key<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session_key: &'life1 str,
open_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}
Provided Associated Constants§
const CHECK_SESSION_KEY: &'static str = "https://api.weixin.qq.com/wxa/checksession"
Required Methods§
Sourcefn check_session_key<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session_key: &'life1 str,
open_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn check_session_key<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session_key: &'life1 str,
open_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
检查登录态是否过期 https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/user-login/checkSessionKey.html
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.