[−][src]Enum wechat_mp::CallbackMessage
微信回调消息
Variants
文本消息
Fields of Text
图片消息
Fields of Image
语音消息
Fields of Voice
info: MessageInfo
media_id: String
语音消息媒体id,可以调用获取临时素材接口拉取数据
format: String
语音格式,如amr,speex等
recognition: Option<String>
语音识别结果,UTF8编码
视频消息
Fields of Video
info: MessageInfo
media_id: String
视频消息媒体id,可以调用获取临时素材接口拉取数据
thumb_media_id: String
视频消息缩略图的媒体id,可以调用多媒体文件下载接口拉取数据
小视频消息
Fields of ShortVideo
info: MessageInfo
media_id: String
视频消息媒体id,可以调用获取临时素材接口拉取数据。
thumb_media_id: String
视频消息缩略图的媒体id,可以调用获取临时素材接口拉取数据
地理位置消息
Fields of Location
链接消息
Fields of Link
普通回调事件
Fields of Event
info: MessageInfo
event: NormalEventMessage
菜单事件
Fields of MenuMessage
info: MessageInfo
event: MenuEventMessage
Implementations
impl CallbackMessage
[src]
pub fn get_info(&self) -> &MessageInfo
[src]
Trait Implementations
impl Clone for CallbackMessage
[src]
fn clone(&self) -> CallbackMessage
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CallbackMessage
[src]
impl PartialEq<CallbackMessage> for CallbackMessage
[src]
fn eq(&self, other: &CallbackMessage) -> bool
[src]
fn ne(&self, other: &CallbackMessage) -> bool
[src]
impl StructuralPartialEq for CallbackMessage
[src]
Auto Trait Implementations
impl RefUnwindSafe for CallbackMessage
impl Send for CallbackMessage
impl Sync for CallbackMessage
impl Unpin for CallbackMessage
impl UnwindSafe for CallbackMessage
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
impl<T> From<T> for T
[src]
impl<T> Interface for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ModuleInterface for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,