pub enum McpUiAppsTier {
Off,
Static,
Interactive,
}Expand description
MCP Apps presentation tier: how a surface may present ui:// app resources.
Variants§
Off
Refuse app UI: no ui:// fetch, no disclosure rows. Refused URIs
surface through a sandbox-denied event instead.
Static
Disclosure rows plus an opt-in static preview of sanitized app structure; no interactivity.
Interactive
Full interactive app. Rejected until a sandboxed webview host exists.
Implementations§
Source§impl McpUiAppsTier
impl McpUiAppsTier
Sourcepub fn advertises_ui_extension(self) -> bool
pub fn advertises_ui_extension(self) -> bool
Whether this tier may advertise the io.modelcontextprotocol/ui extension.
Only Interactive can honor app round-trips; a static preview must not
advertise support it cannot fulfill.
Trait Implementations§
Source§impl Clone for McpUiAppsTier
impl Clone for McpUiAppsTier
impl Copy for McpUiAppsTier
Source§impl Debug for McpUiAppsTier
impl Debug for McpUiAppsTier
Source§impl Default for McpUiAppsTier
impl Default for McpUiAppsTier
Source§impl<'de> Deserialize<'de> for McpUiAppsTier
impl<'de> Deserialize<'de> for McpUiAppsTier
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 Display for McpUiAppsTier
impl Display for McpUiAppsTier
impl Eq for McpUiAppsTier
Source§impl JsonSchema for McpUiAppsTier
impl JsonSchema for McpUiAppsTier
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for McpUiAppsTier
impl PartialEq for McpUiAppsTier
Source§impl Serialize for McpUiAppsTier
impl Serialize for McpUiAppsTier
impl StructuralPartialEq for McpUiAppsTier
Auto Trait Implementations§
impl Freeze for McpUiAppsTier
impl RefUnwindSafe for McpUiAppsTier
impl Send for McpUiAppsTier
impl Sync for McpUiAppsTier
impl Unpin for McpUiAppsTier
impl UnsafeUnpin for McpUiAppsTier
impl UnwindSafe for McpUiAppsTier
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more