pub struct RequestContext {
pub account_id: String,
pub region: String,
pub service: String,
pub access_key: Option<String>,
pub request_id: String,
pub method: String,
pub uri: String,
pub event_bus: Option<EventBus>,
}Expand description
Context extracted from an incoming AWS API request.
Contains the account ID, region, service, and request metadata needed by service handlers to process the request.
Fields§
§account_id: StringAWS account ID (default: “000000000000” in bypass mode)
region: StringAWS region (e.g., “us-east-1”)
service: StringService name extracted from the request
access_key: Option<String>Access key ID (if present in Authorization header)
request_id: StringUnique request ID for this API call
method: StringHTTP method of the original request
uri: StringURI path of the original request
event_bus: Option<EventBus>Internal event bus — present for requests routed through the gateway;
None in unit tests or any context where no bus was configured.
Implementations§
Trait Implementations§
Source§impl Clone for RequestContext
impl Clone for RequestContext
Source§fn clone(&self) -> RequestContext
fn clone(&self) -> RequestContext
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 moreAuto Trait Implementations§
impl Freeze for RequestContext
impl !RefUnwindSafe for RequestContext
impl Send for RequestContext
impl Sync for RequestContext
impl Unpin for RequestContext
impl UnsafeUnpin for RequestContext
impl !UnwindSafe for RequestContext
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