pub struct MiddlewareContext<'a> {
pub model: &'a dyn DynLanguageModel,
pub kind: CallKind,
}Expand description
The model being wrapped and the kind of call.
Fields§
§model: &'a dyn DynLanguageModelThe wrapped (inner) model.
kind: CallKindThe kind of call.
Trait Implementations§
Source§impl<'a> Clone for MiddlewareContext<'a>
impl<'a> Clone for MiddlewareContext<'a>
Source§fn clone(&self) -> MiddlewareContext<'a>
fn clone(&self) -> MiddlewareContext<'a>
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 moreimpl<'a> Copy for MiddlewareContext<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for MiddlewareContext<'a>
impl<'a> !UnwindSafe for MiddlewareContext<'a>
impl<'a> Freeze for MiddlewareContext<'a>
impl<'a> Send for MiddlewareContext<'a>
impl<'a> Sync for MiddlewareContext<'a>
impl<'a> Unpin for MiddlewareContext<'a>
impl<'a> UnsafeUnpin for MiddlewareContext<'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