pub struct ElicitationResponse { /* private fields */ }Expand description
Elicitation response builder
Wrapper around protocol ElicitResult with ergonomic factory methods.
§Examples
use turbomcp_client::handlers::ElicitationResponse;
use std::collections::HashMap;
// Accept with content
let mut content = HashMap::new();
content.insert("name".to_string(), serde_json::json!("Alice"));
let response = ElicitationResponse::accept(content);
// Decline
let response = ElicitationResponse::decline();
// Cancel
let response = ElicitationResponse::cancel();Implementations§
Trait Implementations§
Source§impl Clone for ElicitationResponse
impl Clone for ElicitationResponse
Source§fn clone(&self) -> ElicitationResponse
fn clone(&self) -> ElicitationResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ElicitationResponse
impl RefUnwindSafe for ElicitationResponse
impl Send for ElicitationResponse
impl Sync for ElicitationResponse
impl Unpin for ElicitationResponse
impl UnwindSafe for ElicitationResponse
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