pub struct WebMcpDiscoveryState {
pub url: String,
pub phase: WebMcpDiscoveryPhase,
pub tools: Vec<WebMcpTool>,
pub context: Option<WebMcpContext>,
pub error: Option<String>,
}Expand description
Complete discovery state for a single page.
Fields§
§url: StringURL being discovered.
phase: WebMcpDiscoveryPhaseCurrent phase of discovery.
tools: Vec<WebMcpTool>Discovered tools (populated when phase == Ready).
context: Option<WebMcpContext>Page context (if provided).
error: Option<String>Error message (if phase == Failed).
Trait Implementations§
Source§impl Clone for WebMcpDiscoveryState
impl Clone for WebMcpDiscoveryState
Source§fn clone(&self) -> WebMcpDiscoveryState
fn clone(&self) -> WebMcpDiscoveryState
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 moreSource§impl ComposeSchema for WebMcpDiscoveryState
impl ComposeSchema for WebMcpDiscoveryState
Source§impl Debug for WebMcpDiscoveryState
impl Debug for WebMcpDiscoveryState
Source§impl<'de> Deserialize<'de> for WebMcpDiscoveryState
impl<'de> Deserialize<'de> for WebMcpDiscoveryState
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 WebMcpDiscoveryState
impl PartialEq for WebMcpDiscoveryState
Source§impl Serialize for WebMcpDiscoveryState
impl Serialize for WebMcpDiscoveryState
Source§impl ToSchema for WebMcpDiscoveryState
impl ToSchema for WebMcpDiscoveryState
impl StructuralPartialEq for WebMcpDiscoveryState
Auto Trait Implementations§
impl Freeze for WebMcpDiscoveryState
impl RefUnwindSafe for WebMcpDiscoveryState
impl Send for WebMcpDiscoveryState
impl Sync for WebMcpDiscoveryState
impl Unpin for WebMcpDiscoveryState
impl UnwindSafe for WebMcpDiscoveryState
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