#[non_exhaustive]pub struct RequestEvent {
pub ts: f64,
pub protocol: Protocol,
pub from: String,
pub to: String,
pub id: Value,
pub method: String,
pub session: Option<String>,
pub params: Value,
}Expand description
A JSON-RPC request from one component to another.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ts: f64Monotonic timestamp (seconds since trace start).
protocol: ProtocolProtocol: ACP or MCP.
from: StringSource component (e.g., “client”, “proxy:0”, “proxy:1”, “agent”).
to: StringDestination component.
id: ValueJSON-RPC request ID (for correlating with response).
method: StringJSON-RPC method name.
session: Option<String>ACP session ID, if known (null before session/new completes).
params: ValueFull request params.
Trait Implementations§
Source§impl Clone for RequestEvent
impl Clone for RequestEvent
Source§fn clone(&self) -> RequestEvent
fn clone(&self) -> RequestEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 RequestEvent
impl Debug for RequestEvent
Source§impl<'de> Deserialize<'de> for RequestEvent
impl<'de> Deserialize<'de> for RequestEvent
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
Auto Trait Implementations§
impl Freeze for RequestEvent
impl RefUnwindSafe for RequestEvent
impl Send for RequestEvent
impl Sync for RequestEvent
impl Unpin for RequestEvent
impl UnsafeUnpin for RequestEvent
impl UnwindSafe for RequestEvent
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