pub struct WasmInput {
pub config: String,
pub head: Option<WasmHead>,
pub body: Option<Vec<u8>>,
pub request_id: Option<String>,
pub request_ts: Option<i64>,
}Expand description
传递给 WASM 插件的输入数据
Fields§
§config: String插件配置(JSON 字符串)
head: Option<WasmHead>HTTP 头部信息(请求或响应)
body: Option<Vec<u8>>Body 数据
request_id: Option<String>请求 ID(仅 logging 阶段使用)
request_ts: Option<i64>请求时间戳(仅 logging 阶段使用)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WasmInput
impl<'de> Deserialize<'de> for WasmInput
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 WasmInput
impl RefUnwindSafe for WasmInput
impl Send for WasmInput
impl Sync for WasmInput
impl Unpin for WasmInput
impl UnsafeUnpin for WasmInput
impl UnwindSafe for WasmInput
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