pub struct UrlElicitationData {
pub url: String,
pub elicitation_id: String,
pub message: Option<String>,
}Expand description
Typed payload for the URL elicitation error case.
Mirrors the shape of rmcp::model::CreateElicitationRequestParams::UrlElicitationParams
(camelCase on the wire). Server messages that include extra fields are
accepted; missing required fields make typed parsing fail and the
surrounding McpInvocationError::UrlElicitation preserves the raw
payload instead.
Fields§
§url: StringThe URL where the user can complete the elicitation.
elicitation_id: StringThe server-issued identifier for this elicitation request.
message: Option<String>Optional human-readable message that accompanied the payload.
Trait Implementations§
Source§impl Clone for UrlElicitationData
impl Clone for UrlElicitationData
Source§fn clone(&self) -> UrlElicitationData
fn clone(&self) -> UrlElicitationData
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 UrlElicitationData
impl Debug for UrlElicitationData
Source§impl<'de> Deserialize<'de> for UrlElicitationData
impl<'de> Deserialize<'de> for UrlElicitationData
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
Auto Trait Implementations§
impl Freeze for UrlElicitationData
impl RefUnwindSafe for UrlElicitationData
impl Send for UrlElicitationData
impl Sync for UrlElicitationData
impl Unpin for UrlElicitationData
impl UnsafeUnpin for UrlElicitationData
impl UnwindSafe for UrlElicitationData
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