#[non_exhaustive]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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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