pub struct HarLookupResult {
pub action: String,
pub redirect_url: Option<String>,
pub status: Option<u16>,
pub headers: Option<Vec<Value>>,
pub body: Option<String>,
}Expand description
Result from a harLookup RPC call.
Describes whether the request was found in the HAR and how to respond.
Fields§
§action: StringAction to take: "fulfill", "redirect", "fallback", or "error".
redirect_url: Option<String>For "redirect": the URL to redirect to.
status: Option<u16>For "fulfill": HTTP status code.
headers: Option<Vec<Value>>For "fulfill": HTTP headers as [{"name": ..., "value": ...}].
body: Option<String>For "fulfill": Base64-encoded response body.
Trait Implementations§
Source§impl Debug for HarLookupResult
impl Debug for HarLookupResult
Source§impl<'de> Deserialize<'de> for HarLookupResult
impl<'de> Deserialize<'de> for HarLookupResult
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 HarLookupResult
impl RefUnwindSafe for HarLookupResult
impl Send for HarLookupResult
impl Sync for HarLookupResult
impl Unpin for HarLookupResult
impl UnsafeUnpin for HarLookupResult
impl UnwindSafe for HarLookupResult
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