pub struct McpAppDisclosure {
pub uri: String,
pub mime_type: Option<String>,
pub bytes: u64,
pub blocks: usize,
pub ui: Option<McpUiResourceMeta>,
}Expand description
Compact disclosure facts about an MCP resource for app presentation surfaces.
Built by disclose_app_resource from a resources/read result. Surfaces
render from these facts instead of re-parsing content blocks.
Fields§
§uri: StringURI that was read.
mime_type: Option<String>MIME type of the first content block, when the server provides one.
bytes: u64Total body bytes across content blocks (base64 length for blobs).
blocks: usizeNumber of content blocks.
ui: Option<McpUiResourceMeta>Declared UI sandbox posture, when any block (or the envelope) carries _meta.ui.
Trait Implementations§
Source§impl Clone for McpAppDisclosure
impl Clone for McpAppDisclosure
Source§impl Debug for McpAppDisclosure
impl Debug for McpAppDisclosure
Source§impl<'de> Deserialize<'de> for McpAppDisclosure
impl<'de> Deserialize<'de> for McpAppDisclosure
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 McpAppDisclosure
impl RefUnwindSafe for McpAppDisclosure
impl Send for McpAppDisclosure
impl Sync for McpAppDisclosure
impl Unpin for McpAppDisclosure
impl UnsafeUnpin for McpAppDisclosure
impl UnwindSafe for McpAppDisclosure
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more