pub struct RequestId(pub String);Expand description
The request’s correlation ID (X-Request-Id by default — see
crate::request_id::DEFAULT_HEADER), for handlers that want it without
reaching for RequestHeaders directly.
Never fails: if crate::request_id::RequestIdLayer isn’t wrapping this
app (or the caller didn’t send the header), .0 is an empty string.
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RequestId
impl RefUnwindSafe for RequestId
impl Send for RequestId
impl Sync for RequestId
impl Unpin for RequestId
impl UnsafeUnpin for RequestId
impl UnwindSafe for RequestId
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