pub struct RoutePayload {
pub args: Value,
pub result: Option<Value>,
}Expand description
Mutable payload for a route invocation. args is the request arguments
object; result is the response object (None on the inbound path,
Some once the tool/resource has produced a value).
Fields§
§args: Value§result: Option<Value>Implementations§
Source§impl RoutePayload
impl RoutePayload
Trait Implementations§
Source§impl Clone for RoutePayload
impl Clone for RoutePayload
Source§fn clone(&self) -> RoutePayload
fn clone(&self) -> RoutePayload
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 moreAuto Trait Implementations§
impl Freeze for RoutePayload
impl RefUnwindSafe for RoutePayload
impl Send for RoutePayload
impl Sync for RoutePayload
impl Unpin for RoutePayload
impl UnsafeUnpin for RoutePayload
impl UnwindSafe for RoutePayload
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