pub struct PromptDef {
pub prompt: Prompt,
pub handler: PromptHandlerFn,
}Expand description
A fully-described prompt produced by the #[prompt] proc macro.
Fields§
§prompt: Prompt§handler: PromptHandlerFnImplementations§
Auto Trait Implementations§
impl Freeze for PromptDef
impl !RefUnwindSafe for PromptDef
impl Send for PromptDef
impl Sync for PromptDef
impl Unpin for PromptDef
impl UnsafeUnpin for PromptDef
impl !UnwindSafe for PromptDef
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