pub struct PromptEntry {
pub name: &'static str,
pub title: &'static str,
pub description: &'static str,
pub argument: (&'static str, &'static str),
pub surface: Surface,
/* private fields */
}Expand description
One prompt: a name, an optional argument, and the guidance it expands to.
Fields§
§name: &'static str§title: &'static str§description: &'static str§argument: (&'static str, &'static str)The one optional argument, and what it is for.
surface: SurfaceThe surface the prompt cannot work without, and so the one that decides
whether it is listed at all — the rule read already applies to a
resource.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PromptEntry
impl RefUnwindSafe for PromptEntry
impl Send for PromptEntry
impl Sync for PromptEntry
impl Unpin for PromptEntry
impl UnsafeUnpin for PromptEntry
impl UnwindSafe for PromptEntry
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