pub enum InjectionPoint {
Header(String),
Query(String),
JsonBody(String),
}Expand description
Куда подставляется тестовое значение. Header — самый частый случай для API-ключей, Query — для legacy-эндпоинтов с токеном в URL, JsonBody — для типичных JSON-логинов (POST /login {“password”: “…”}).
Variants§
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