pub struct McpAppsToolResult {
pub content: Vec<ContentBlock>,
pub is_error: bool,
pub structured_content: Option<Value>,
}Expand description
One validated Apps-side projection of a complete final tools/call result.
This projection intentionally accepts only the complete final result branch. Tasks and MRTR input-required branches remain outside the Apps bridge until an explicit composition contract is implemented.
Fields§
§content: Vec<ContentBlock>Complete final content projected without normalization.
is_error: boolTool-level error indicator retained exactly.
structured_content: Option<Value>Optional structured output, including an explicitly present JSON null.
Implementations§
Source§impl McpAppsToolResult
impl McpAppsToolResult
Sourcepub fn try_new(
content: Vec<ContentBlock>,
is_error: bool,
structured_content: Option<Value>,
) -> Result<Self, McpAppsResultProjectionError>
pub fn try_new( content: Vec<ContentBlock>, is_error: bool, structured_content: Option<Value>, ) -> Result<Self, McpAppsResultProjectionError>
Constructs a bounded Apps result projection.
Sourcepub fn from_final_call_tool_result(
result: &FinalCallToolResult,
) -> Result<Self, McpAppsResultProjectionError>
pub fn from_final_call_tool_result( result: &FinalCallToolResult, ) -> Result<Self, McpAppsResultProjectionError>
Projects one fully validated final tools/call payload exactly once.
Trait Implementations§
Source§impl Clone for McpAppsToolResult
impl Clone for McpAppsToolResult
Source§fn clone(&self) -> McpAppsToolResult
fn clone(&self) -> McpAppsToolResult
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 McpAppsToolResult
impl Debug for McpAppsToolResult
Source§impl<'de> Deserialize<'de> for McpAppsToolResult
impl<'de> Deserialize<'de> for McpAppsToolResult
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 McpAppsToolResult
impl PartialEq for McpAppsToolResult
Source§impl Serialize for McpAppsToolResult
impl Serialize for McpAppsToolResult
impl StructuralPartialEq for McpAppsToolResult
Auto Trait Implementations§
impl Freeze for McpAppsToolResult
impl RefUnwindSafe for McpAppsToolResult
impl Send for McpAppsToolResult
impl Sync for McpAppsToolResult
impl Unpin for McpAppsToolResult
impl UnsafeUnpin for McpAppsToolResult
impl UnwindSafe for McpAppsToolResult
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: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).