pub struct PluginHttpResponse {
pub status: u16,
pub headers: Option<HashMap<String, String>>,
pub body: Option<Value>,
}Expand description
Response returned by the Wasm plugin after processing a route.
Fields§
§status: u16§headers: Option<HashMap<String, String>>§body: Option<Value>Implementations§
Trait Implementations§
Source§impl Clone for PluginHttpResponse
impl Clone for PluginHttpResponse
Source§fn clone(&self) -> PluginHttpResponse
fn clone(&self) -> PluginHttpResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PluginHttpResponse
impl Debug for PluginHttpResponse
Source§impl<'de> Deserialize<'de> for PluginHttpResponse
impl<'de> Deserialize<'de> for PluginHttpResponse
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 PluginHttpResponse
impl RefUnwindSafe for PluginHttpResponse
impl Send for PluginHttpResponse
impl Sync for PluginHttpResponse
impl Unpin for PluginHttpResponse
impl UnsafeUnpin for PluginHttpResponse
impl UnwindSafe for PluginHttpResponse
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