pub struct WxSdk<T: AccessTokenProvider> {
pub app_id: String,
/* private fields */
}
Expand description
This is the sdk object. We provide a new
method to construct it.
Fields§
§app_id: String
Implementations§
Source§impl<T: AccessTokenProvider> WxSdk<T>
impl<T: AccessTokenProvider> WxSdk<T>
Source§impl WxSdk<TokenClient>
impl WxSdk<TokenClient>
pub fn new_with_default_token_client<S: AsRef<str>>( app_id: S, app_secret: S, ) -> Self
Trait Implementations§
Source§impl<T: AccessTokenProvider> WxApiRequestBuilder for WxSdk<T>
impl<T: AccessTokenProvider> WxApiRequestBuilder for WxSdk<T>
fn wx_get<'life0, 'async_trait>(
&'life0 self,
url: &'static str,
) -> Pin<Box<dyn Future<Output = SdkResult<RequestBuilder>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn wx_post<'life0, 'async_trait>(
&'life0 self,
url: &'static str,
) -> Pin<Box<dyn Future<Output = SdkResult<RequestBuilder>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl<T> Freeze for WxSdk<T>where
T: Freeze,
impl<T> !RefUnwindSafe for WxSdk<T>
impl<T> Send for WxSdk<T>
impl<T> Sync for WxSdk<T>
impl<T> Unpin for WxSdk<T>where
T: Unpin,
impl<T> !UnwindSafe for WxSdk<T>
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