pub enum InjectionPoint {
Header(String),
Query(String),
JsonBody {
field: String,
template: Option<Map<String, Value>>,
},
}Expand description
Where the test value gets injected. Header is the most common case for API keys, Query for legacy endpoints with a token in the URL, JsonBody for typical JSON logins (POST /login {“password”: “…”}).
Variants§
Header(String)
Query(String)
JsonBody
Name of the field in the JSON request body, plus an optional template for the rest of the fields (e.g. {“username”: “admin”}) the backend needs to even reach the secret comparison. If no template is given, the body is just this one field, as before.
Implementations§
Trait Implementations§
Source§impl Clone for InjectionPoint
impl Clone for InjectionPoint
Source§fn clone(&self) -> InjectionPoint
fn clone(&self) -> InjectionPoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InjectionPoint
impl RefUnwindSafe for InjectionPoint
impl Send for InjectionPoint
impl Sync for InjectionPoint
impl Unpin for InjectionPoint
impl UnsafeUnpin for InjectionPoint
impl UnwindSafe for InjectionPoint
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