pub enum FrontendResponse {
Approval {
request_id: u64,
decision: FrontendApprovalDecision,
},
Elicitation {
request_id: u64,
action: FrontendElicitationAction,
content: Option<Value>,
},
Other {
request_id: u64,
action: FrontendElicitationAction,
content: Option<Value>,
},
}Expand description
Typed response to one SDK-owned interactive request.
Variants§
Approval
Answer an approval request.
Fields
§
request_id: u64Identifier from FrontendRequest::id.
§
decision: FrontendApprovalDecisionHuman decision.
Elicitation
Answer an MCP elicitation request.
Fields
§
request_id: u64Identifier from FrontendRequest::id.
§
action: FrontendElicitationActionMCP elicitation outcome.
Other
Answer a generic runtime request without discarding its payload.
Fields
§
request_id: u64Identifier from FrontendRequest::id.
§
action: FrontendElicitationActionGeneric accept/decline/cancel outcome.
Trait Implementations§
Source§impl Clone for FrontendResponse
impl Clone for FrontendResponse
Source§fn clone(&self) -> FrontendResponse
fn clone(&self) -> FrontendResponse
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 FrontendResponse
impl Debug for FrontendResponse
Source§impl<'de> Deserialize<'de> for FrontendResponse
impl<'de> Deserialize<'de> for FrontendResponse
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
Source§impl PartialEq for FrontendResponse
impl PartialEq for FrontendResponse
Source§impl Serialize for FrontendResponse
impl Serialize for FrontendResponse
impl StructuralPartialEq for FrontendResponse
Auto Trait Implementations§
impl Freeze for FrontendResponse
impl RefUnwindSafe for FrontendResponse
impl Send for FrontendResponse
impl Sync for FrontendResponse
impl Unpin for FrontendResponse
impl UnsafeUnpin for FrontendResponse
impl UnwindSafe for FrontendResponse
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