pub struct PromptRoute {
pub prompt: Prompt,
pub handler: PromptHandlerFn,
pub completion_handler: Option<CompletionHandlerFn>,
}Fields§
§prompt: Prompt§handler: PromptHandlerFn§completion_handler: Option<CompletionHandlerFn>Auto Trait Implementations§
impl Freeze for PromptRoute
impl !RefUnwindSafe for PromptRoute
impl Send for PromptRoute
impl Sync for PromptRoute
impl Unpin for PromptRoute
impl UnsafeUnpin for PromptRoute
impl !UnwindSafe for PromptRoute
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