pub struct MiddlewareInput {
pub messages: Vec<Value>,
pub context: Value,
}Expand description
Input passed through the middleware chain.
Fields§
§messages: Vec<Value>Conversation messages as JSON values.
context: ValueArbitrary context metadata.
Trait Implementations§
Source§impl Clone for MiddlewareInput
impl Clone for MiddlewareInput
Source§fn clone(&self) -> MiddlewareInput
fn clone(&self) -> MiddlewareInput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MiddlewareInput
impl RefUnwindSafe for MiddlewareInput
impl Send for MiddlewareInput
impl Sync for MiddlewareInput
impl Unpin for MiddlewareInput
impl UnsafeUnpin for MiddlewareInput
impl UnwindSafe for MiddlewareInput
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