#[non_exhaustive]pub struct Exchange<'a> {
pub method: &'a Method,
pub uri: &'a Uri,
pub extensions: &'a Extensions,
}Expand description
The request a hook runs for: its method, URI and extensions, which carry
what the caller attached to it, such as the model call a request serves
(rig-core’s serve::Serving). Built by
DynHttpClient; a field added later breaks no
hook.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.method: &'a MethodThe request’s method.
uri: &'a UriThe request’s URI.
extensions: &'a ExtensionsThe request’s extensions, as the transport receives them.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Exchange<'a>
impl<'a> !UnwindSafe for Exchange<'a>
impl<'a> Freeze for Exchange<'a>
impl<'a> Send for Exchange<'a>
impl<'a> Sync for Exchange<'a>
impl<'a> Unpin for Exchange<'a>
impl<'a> UnsafeUnpin for Exchange<'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