pub struct ServeRequest<'a> {
pub path: &'a str,
pub accept_json: bool,
pub inventory_hex: &'a str,
}Expand description
A server request to be handled by serve_request.
Fields§
§path: &'a strThe URL path (e.g., "/email/thread-5", "/folder/sent").
accept_json: boolWhether the client accepts JSON (for partial navigation).
Check Accept: application/json in request headers.
inventory_hex: &'a strThe client’s current template inventory (hex bitmask).
Read from X-WebUI-Inventory request header. Empty string if not present.
Auto Trait Implementations§
impl<'a> Freeze for ServeRequest<'a>
impl<'a> RefUnwindSafe for ServeRequest<'a>
impl<'a> Send for ServeRequest<'a>
impl<'a> Sync for ServeRequest<'a>
impl<'a> Unpin for ServeRequest<'a>
impl<'a> UnsafeUnpin for ServeRequest<'a>
impl<'a> UnwindSafe for ServeRequest<'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> 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