pub struct Prompt {
pub name: PrimitiveId,
pub title: Option<String>,
pub description: Option<String>,
pub arguments: Vec<PromptArgument>,
pub icons: Option<Vec<ResourceIcon>>,
pub extensions: Extensions,
}Expand description
A prompt or prompt template the server offers.
Only name is required, and that is true in every revision — a prompt with
no arguments and no description is a legal document.
Fields§
§name: PrimitiveIdname. Required. The registry’s key for this primitive.
title: Option<String>title. 2026-07-28.
description: Option<String>description. Every revision.
arguments: Vec<PromptArgument>arguments. Every revision.
icons: Option<Vec<ResourceIcon>>icons. 2026-07-28.
extensions: Extensions_meta and any field a later revision adds.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Prompt
Auto Trait Implementations§
impl Freeze for Prompt
impl RefUnwindSafe for Prompt
impl Send for Prompt
impl Sync for Prompt
impl Unpin for Prompt
impl UnsafeUnpin for Prompt
impl UnwindSafe for Prompt
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