pub struct WechatMaMessage<'a, T: SessionStore> { /* private fields */ }Expand description
消息发送接口.
Implementations§
Source§impl<'a, T: SessionStore> WechatMaMessage<'a, T>
impl<'a, T: SessionStore> WechatMaMessage<'a, T>
pub fn new(client: &WechatMaClient<T>) -> WechatMaMessage<'_, T>
Sourcepub async fn send_kefu_msg(
&self,
message: WxMaKefuMsgRequest,
) -> LabradorResult<WechatCommonResponse>
pub async fn send_kefu_msg( &self, message: WxMaKefuMsgRequest, ) -> LabradorResult<WechatCommonResponse>
发送客服消息 详情请见: 发送客服消息 接口url格式:https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN
Sourcepub async fn send_subscribe_msg(
&self,
data: WxMaSubscribeMsgRequest,
) -> LabradorResult<WechatCommonResponse>
pub async fn send_subscribe_msg( &self, data: WxMaSubscribeMsgRequest, ) -> LabradorResult<WechatCommonResponse>
发送订阅消息 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.send.html
Sourcepub async fn send_uniform_msg(
&self,
data: WxMaUniformMsgRequest,
) -> LabradorResult<WechatCommonResponse>
pub async fn send_uniform_msg( &self, data: WxMaUniformMsgRequest, ) -> LabradorResult<WechatCommonResponse>
下发小程序和公众号统一的服务消息 详情请见: 下发小程序和公众号统一的服务消息 接口url格式:https://api.weixin.qq.com/cgi-bin/message/wxopen/template/uniform_send?access_token=ACCESS_TOKEN
Sourcepub async fn create_updatable_message_activity_id<D: Serialize>(
&self,
data: D,
) -> LabradorResult<Value>
pub async fn create_updatable_message_activity_id<D: Serialize>( &self, data: D, ) -> LabradorResult<Value>
创建被分享动态消息的 activity_id. 动态消息: https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share/updatable-message.html 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/updatable-message/updatableMessage.createActivityId.html 接口地址:GET https://api.weixin.qq.com/cgi-bin/message/wxopen/activityid/create?access_token=ACCESS_TOKEN
Sourcepub async fn create_updatable_message<D: Serialize>(
&self,
data: D,
) -> LabradorResult<()>
pub async fn create_updatable_message<D: Serialize>( &self, data: D, ) -> LabradorResult<()>
修改被分享的动态消息. 动态消息: https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share/updatable-message.html 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/updatable-message/updatableMessage.setUpdatableMsg.html 接口地址:POST https://api.weixin.qq.com/cgi-bin/message/wxopen/activityid/create?access_token=ACCESS_TOKEN
Trait Implementations§
Source§impl<'a, T: Clone + SessionStore> Clone for WechatMaMessage<'a, T>
impl<'a, T: Clone + SessionStore> Clone for WechatMaMessage<'a, T>
Source§fn clone(&self) -> WechatMaMessage<'a, T>
fn clone(&self) -> WechatMaMessage<'a, T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a, T> Freeze for WechatMaMessage<'a, T>
impl<'a, T> RefUnwindSafe for WechatMaMessage<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for WechatMaMessage<'a, T>where
T: Sync,
impl<'a, T> Sync for WechatMaMessage<'a, T>where
T: Sync,
impl<'a, T> Unpin for WechatMaMessage<'a, T>
impl<'a, T> UnwindSafe for WechatMaMessage<'a, T>where
T: RefUnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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