pub struct Headers {
pub app_id: Option<String>,
pub connection_id: Option<String>,
pub content_type: Option<String>,
pub message_id: Option<String>,
pub time: Option<String>,
pub topic: Option<String>,
pub event_born_time: Option<i64>,
pub event_corp_id: Option<String>,
pub event_id: Option<String>,
pub event_type: Option<String>,
pub event_unified_app_id: Option<String>,
pub extensions: HashMap<String, Value>,
}Expand description
消息头
Fields§
§app_id: Option<String>应用 ID
connection_id: Option<String>连接 ID
content_type: Option<String>内容类型
message_id: Option<String>消息 ID
time: Option<String>时间戳
topic: Option<String>主题
event_born_time: Option<i64>事件产生时间
event_corp_id: Option<String>事件所属企业 ID
event_id: Option<String>事件 ID
event_type: Option<String>事件类型
event_unified_app_id: Option<String>事件统一应用 ID
extensions: HashMap<String, Value>扩展字段
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Headers
impl<'de> Deserialize<'de> for Headers
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 Headers
impl RefUnwindSafe for Headers
impl Send for Headers
impl Sync for Headers
impl Unpin for Headers
impl UnsafeUnpin for Headers
impl UnwindSafe for Headers
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