pub struct Request {
pub id: Option<Value>,
pub action: Action,
pub context: CallContext,
}Expand description
A JSON request: an optional id, shared flags, and an Action.
Fields§
§id: Option<Value>Caller-supplied id, echoed on the response when present.
action: ActionAction to run.
context: CallContextFlags that were siblings of action.
Trait Implementations§
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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