pub enum FinalEmbeddedInputResponse {
Sampling(FinalCreateMessageResult),
Roots(FinalEmbeddedRootsListResult),
Elicitation(FinalEmbeddedElicitationResult),
}Expand description
A final MRTR result payload embedded in a Task, without a JSON-RPC envelope.
Variants§
Sampling(FinalCreateMessageResult)
Sampling result payload.
Roots(FinalEmbeddedRootsListResult)
Roots-list result payload.
Elicitation(FinalEmbeddedElicitationResult)
Elicitation result payload. The request ledger determines form versus URL.
Implementations§
Source§impl FinalEmbeddedInputResponse
impl FinalEmbeddedInputResponse
Sourcepub fn matches_kind(&self, kind: FinalEmbeddedInputKind) -> bool
pub fn matches_kind(&self, kind: FinalEmbeddedInputKind) -> bool
Returns whether this response can answer the supplied descriptor kind.
Trait Implementations§
Source§impl Clone for FinalEmbeddedInputResponse
impl Clone for FinalEmbeddedInputResponse
Source§fn clone(&self) -> FinalEmbeddedInputResponse
fn clone(&self) -> FinalEmbeddedInputResponse
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 FinalEmbeddedInputResponse
impl Debug for FinalEmbeddedInputResponse
Source§impl<'de> Deserialize<'de> for FinalEmbeddedInputResponse
impl<'de> Deserialize<'de> for FinalEmbeddedInputResponse
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for FinalEmbeddedInputResponse
Auto Trait Implementations§
impl Freeze for FinalEmbeddedInputResponse
impl RefUnwindSafe for FinalEmbeddedInputResponse
impl Send for FinalEmbeddedInputResponse
impl Sync for FinalEmbeddedInputResponse
impl Unpin for FinalEmbeddedInputResponse
impl UnsafeUnpin for FinalEmbeddedInputResponse
impl UnwindSafe for FinalEmbeddedInputResponse
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).