#[non_exhaustive]pub enum GetPromptResponse {
Complete(GetPromptResult),
InputRequired(InputRequiredResult),
}Expand description
Result of a prompts/get request, including the MRTR intermediate result.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Complete(GetPromptResult)
The server completed the prompt request.
InputRequired(InputRequiredResult)
The server requires client-side input before the prompt can be returned.
Trait Implementations§
Source§impl Clone for GetPromptResponse
impl Clone for GetPromptResponse
Source§fn clone(&self) -> GetPromptResponse
fn clone(&self) -> GetPromptResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GetPromptResponse
impl Debug for GetPromptResponse
Source§impl From<GetPromptResponse> for ServerResult
impl From<GetPromptResponse> for ServerResult
Source§fn from(response: GetPromptResponse) -> ServerResult
fn from(response: GetPromptResponse) -> ServerResult
Converts to this type from the input type.
Source§impl From<GetPromptResult> for GetPromptResponse
impl From<GetPromptResult> for GetPromptResponse
Source§fn from(result: GetPromptResult) -> GetPromptResponse
fn from(result: GetPromptResult) -> GetPromptResponse
Converts to this type from the input type.
Source§impl From<InputRequiredResult> for GetPromptResponse
impl From<InputRequiredResult> for GetPromptResponse
Source§fn from(result: InputRequiredResult) -> GetPromptResponse
fn from(result: InputRequiredResult) -> GetPromptResponse
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for GetPromptResponse
impl !UnwindSafe for GetPromptResponse
impl Freeze for GetPromptResponse
impl Send for GetPromptResponse
impl Sync for GetPromptResponse
impl Unpin for GetPromptResponse
impl UnsafeUnpin for GetPromptResponse
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.