pub struct McpUiBridgeSnapshot {
pub protocol_version: String,
pub initialized: bool,
pub host_info: McpUiHostInfo,
pub host_capabilities: McpUiHostCapabilities,
pub host_context: Value,
pub app_capabilities: Option<Value>,
pub app_info: Option<Value>,
}Fields§
§protocol_version: String§initialized: bool§host_info: McpUiHostInfo§host_capabilities: McpUiHostCapabilities§host_context: Value§app_capabilities: Option<Value>§app_info: Option<Value>Implementations§
Source§impl McpUiBridgeSnapshot
impl McpUiBridgeSnapshot
pub fn new( protocol_version: impl Into<String>, initialized: bool, host_info: McpUiHostInfo, host_capabilities: McpUiHostCapabilities, host_context: Value, ) -> Self
pub fn with_app_metadata(self, app_info: Value, app_capabilities: Value) -> Self
pub fn with_optional_app_metadata( self, app_info: Option<Value>, app_capabilities: Option<Value>, ) -> Self
pub fn into_tool_result_bridge(self) -> McpUiToolResultBridge
pub fn build_tool_result( self, structured_content: Option<Value>, resource_uri: Option<String>, html: Option<String>, ) -> McpUiToolResult
Trait Implementations§
Source§impl Clone for McpUiBridgeSnapshot
impl Clone for McpUiBridgeSnapshot
Source§fn clone(&self) -> McpUiBridgeSnapshot
fn clone(&self) -> McpUiBridgeSnapshot
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 McpUiBridgeSnapshot
impl Debug for McpUiBridgeSnapshot
Source§impl<'de> Deserialize<'de> for McpUiBridgeSnapshot
impl<'de> Deserialize<'de> for McpUiBridgeSnapshot
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 McpUiBridgeSnapshot
impl RefUnwindSafe for McpUiBridgeSnapshot
impl Send for McpUiBridgeSnapshot
impl Sync for McpUiBridgeSnapshot
impl Unpin for McpUiBridgeSnapshot
impl UnsafeUnpin for McpUiBridgeSnapshot
impl UnwindSafe for McpUiBridgeSnapshot
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