pub struct McpAppReadResult {
pub uri: String,
pub request_id: String,
pub mime_type: Option<String>,
pub body: String,
pub total_bytes: u64,
pub truncated: bool,
}Expand description
One bounded MCP app-resource body.
Fields§
§uri: StringURI that was read.
request_id: StringEchoed request identity.
mime_type: Option<String>MIME type of the first text block, when the server provides one.
body: StringBounded body bytes; empty when the resource has no text block.
total_bytes: u64Total body bytes available across text blocks.
truncated: boolWhether the body was truncated to MAX_MCP_APP_BODY_BYTES.
Trait Implementations§
Source§impl Clone for McpAppReadResult
impl Clone for McpAppReadResult
Source§impl Debug for McpAppReadResult
impl Debug for McpAppReadResult
Source§impl<'de> Deserialize<'de> for McpAppReadResult
impl<'de> Deserialize<'de> for McpAppReadResult
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
impl Eq for McpAppReadResult
Source§impl PartialEq for McpAppReadResult
impl PartialEq for McpAppReadResult
Source§impl Serialize for McpAppReadResult
impl Serialize for McpAppReadResult
impl StructuralPartialEq for McpAppReadResult
Auto Trait Implementations§
impl Forget for McpAppReadResult
impl Freeze for McpAppReadResult
impl RefUnwindSafe for McpAppReadResult
impl Send for McpAppReadResult
impl Sync for McpAppReadResult
impl Unpin for McpAppReadResult
impl UnsafeUnpin for McpAppReadResult
impl UnwindSafe for McpAppReadResult
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.