pub struct MpSdk<T: AccessTokenProvider> { /* private fields */ }
Expand description
公众号接口SDK,由于 Rust Doc 中还无法搜索中文,请直接搜索相关请求 url 中的关键信息,例如 clear_quota
为接口限额清零接口。
Implementations§
Source§impl<T: AccessTokenProvider> MpSdk<T>
impl<T: AccessTokenProvider> MpSdk<T>
Sourcepub async fn clear_quota(&self) -> SdkResult<()>
pub async fn clear_quota(&self) -> SdkResult<()>
接口限额清零
公众号调用接口并不是无限制的。 每个帐号每月共10次清零操作机会,清零生效一次即用掉一次机会(10次包括了平台上的清零和调用接口API的清零)。
Sourcepub fn qrcode(&self) -> QrcodeModule<'_, WxSdk<T>>
pub fn qrcode(&self) -> QrcodeModule<'_, WxSdk<T>>
Qrcode generator module 生成二维码模块
Sourcepub fn shorten(&self) -> ShortenModule<'_, WxSdk<T>>
pub fn shorten(&self) -> ShortenModule<'_, WxSdk<T>>
Short key generator module 短key生成模块
Tag module 标签模块
Sourcepub fn user(&self) -> UserModule<'_, WxSdk<T>>
pub fn user(&self) -> UserModule<'_, WxSdk<T>>
User module 用户模块
Sourcepub fn message(&self) -> MessageModule<'_, WxSdk<T>>
pub fn message(&self) -> MessageModule<'_, WxSdk<T>>
Message send module 消息(发送)相关模块
Menu module 自定义菜单模块
Sourcepub fn template(&self) -> TemplateModule<'_, WxSdk<T>>
pub fn template(&self) -> TemplateModule<'_, WxSdk<T>>
Template message module 模板消息模块
Sourcepub fn media(&self) -> MediaModule<'_, WxSdk<T>>
pub fn media(&self) -> MediaModule<'_, WxSdk<T>>
Media module (临时)素材文件模块
Sourcepub fn material(&self) -> MaterialModule<'_, WxSdk<T>>
pub fn material(&self) -> MaterialModule<'_, WxSdk<T>>
Material module (永久)素材模块
Sourcepub fn datacube(&self) -> DataCubeModule<'_, WxSdk<T>>
pub fn datacube(&self) -> DataCubeModule<'_, WxSdk<T>>
Datacube module 分析中心模块
Sourcepub fn customservice(&self) -> CustomServiceModule<'_, WxSdk<T>>
pub fn customservice(&self) -> CustomServiceModule<'_, WxSdk<T>>
Custom Service module 客服模块
Sourcepub fn ticket(&self) -> TicketModule<'_, T>
pub fn ticket(&self) -> TicketModule<'_, T>
获取jsapi ticket 或者 wx_card ticket
Sourcepub fn draft(&self) -> DraftModule<'_, T>
pub fn draft(&self) -> DraftModule<'_, T>
草稿箱模块
Sourcepub fn freepublish(&self) -> FreePublishModule<'_, T>
pub fn freepublish(&self) -> FreePublishModule<'_, T>
草稿箱模块
Sourcepub fn parse_received_msg<S: AsRef<str>>(
&self,
msg: S,
url_params: Option<HashMap<String, String>>,
) -> SdkResult<ReceivedEvent>
pub fn parse_received_msg<S: AsRef<str>>( &self, msg: S, url_params: Option<HashMap<String, String>>, ) -> SdkResult<ReceivedEvent>
解析微信推送消息
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for MpSdk<T>where
T: Freeze,
impl<T> !RefUnwindSafe for MpSdk<T>
impl<T> Send for MpSdk<T>
impl<T> Sync for MpSdk<T>
impl<T> Unpin for MpSdk<T>where
T: Unpin,
impl<T> !UnwindSafe for MpSdk<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