pub struct WasmOutput {
pub head: Option<WasmHead>,
pub body: Option<Vec<u8>>,
}Expand description
WASM 插件返回的输出数据
Fields§
§head: Option<WasmHead>修改后的 HTTP 头部(None 表示不修改)
body: Option<Vec<u8>>修改后的 Body(None 表示不修改)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WasmOutput
impl<'de> Deserialize<'de> for WasmOutput
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 WasmOutput
impl RefUnwindSafe for WasmOutput
impl Send for WasmOutput
impl Sync for WasmOutput
impl Unpin for WasmOutput
impl UnsafeUnpin for WasmOutput
impl UnwindSafe for WasmOutput
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