pub struct OnMCPResult {
pub method: String,
pub result: Option<Value>,
pub error: Option<String>,
}Expand description
Canonical observe-only MCP result event.
Fields§
§method: StringMCP method or operation name.
result: Option<Value>Optional result payload.
error: Option<String>Optional error text.
Trait Implementations§
Source§impl Clone for OnMCPResult
impl Clone for OnMCPResult
Source§fn clone(&self) -> OnMCPResult
fn clone(&self) -> OnMCPResult
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 OnMCPResult
impl Debug for OnMCPResult
Source§impl Event for OnMCPResult
impl Event for OnMCPResult
Source§fn event_type(&self) -> EventType
fn event_type(&self) -> EventType
Return the event type discriminator for this event.
Auto Trait Implementations§
impl Freeze for OnMCPResult
impl RefUnwindSafe for OnMCPResult
impl Send for OnMCPResult
impl Sync for OnMCPResult
impl Unpin for OnMCPResult
impl UnsafeUnpin for OnMCPResult
impl UnwindSafe for OnMCPResult
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