pub struct A2aRequestContext {
pub protocol_version: A2aVersion,
}Expand description
The per-request context the A2A handler receives.
Carries the negotiated protocol version (so the handler can decode per-revision params) and the auth context (so a handler that needs to check identity has it without re-parsing headers). Future fields land here as the protocol grows: the request id, the request deadline, the tenant id from the URL.
Fields§
§protocol_version: A2aVersionThe negotiated A2A protocol version. The handler is responsible for decoding params against this version’s wire shape.
Trait Implementations§
Source§impl Clone for A2aRequestContext
impl Clone for A2aRequestContext
Auto Trait Implementations§
impl Freeze for A2aRequestContext
impl RefUnwindSafe for A2aRequestContext
impl Send for A2aRequestContext
impl Sync for A2aRequestContext
impl Unpin for A2aRequestContext
impl UnsafeUnpin for A2aRequestContext
impl UnwindSafe for A2aRequestContext
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