pub struct WxNotify {
pub id: String,
pub create_time: String,
pub event_type: String,
pub resource_type: String,
pub resource: WxNotifyResource,
pub summary: String,
}Expand description
微信所有回调第一层通知结构
Fields§
§id: String通知的唯一ID。
create_time: String通知创建的时间,遵循rfc3339标准格式,格式为yyyy-MM-DDTHH:mm:ss+TIMEZONE,yyyy-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示北京时间2015年05月20日13点29分35秒。
event_type: String通知的类型,支付成功通知的类型为 TRANSACTION.SUCCESS。
resource_type: String通知的资源数据类型,支付成功通知为encrypt-resource。
resource: WxNotifyResource通知资源数据。
summary: String回调摘要
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WxNotify
impl<'de> Deserialize<'de> for WxNotify
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WxNotify
impl RefUnwindSafe for WxNotify
impl Send for WxNotify
impl Sync for WxNotify
impl Unpin for WxNotify
impl UnwindSafe for WxNotify
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