pub struct OverrideRequest<'a> {
pub method: &'a str,
pub path_template: &'a str,
pub operation_id: &'a str,
pub tags: &'a [String],
pub headers: &'a HeaderMap,
pub query: Option<&'a str>,
pub body: &'a [u8],
}Expand description
The request an override rule is evaluated against
Fields§
§method: &'a strHTTP method, uppercase
path_template: &'a strThe OpenAPI path template, e.g. /users/{id}
operation_id: &'a strThe operation’s operationId, or empty when the spec has none
The operation’s OpenAPI tags followed by its operationId
headers: &'a HeaderMapRequest headers
query: Option<&'a str>Raw query string, without the leading ?
body: &'a [u8]Raw request body
Trait Implementations§
Source§impl<'a> Clone for OverrideRequest<'a>
impl<'a> Clone for OverrideRequest<'a>
impl<'a> Copy for OverrideRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for OverrideRequest<'a>
impl<'a> RefUnwindSafe for OverrideRequest<'a>
impl<'a> Send for OverrideRequest<'a>
impl<'a> Sync for OverrideRequest<'a>
impl<'a> Unpin for OverrideRequest<'a>
impl<'a> UnsafeUnpin for OverrideRequest<'a>
impl<'a> UnwindSafe for OverrideRequest<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more