pub struct ApiCallRequest {
pub method: String,
pub path: String,
pub body: Option<String>,
pub headers: Vec<(String, String)>,
pub query: Vec<(String, String)>,
}Expand description
The raw passthrough request: arbitrary method, caller path, raw
body text, extra headers, and query pairs. body is RAW TEXT
passthrough (JSON or otherwise — the gateway’s answer classifies;
GET/DELETE bodies allowed, curl parity).
Fields§
§method: StringHTTP method (any RFC verb — reqwest validates the bytes).
path: StringAbsolute path on the gateway (leading /, no ?, no host).
body: Option<String>Raw body text, ANY method (None = no body).
headers: Vec<(String, String)>Extra headers (auth-pattern names are refused pre-I/O).
query: Vec<(String, String)>Query pairs (the ONE query mechanism — never ? in path).
Trait Implementations§
Source§impl Clone for ApiCallRequest
impl Clone for ApiCallRequest
Source§fn clone(&self) -> ApiCallRequest
fn clone(&self) -> ApiCallRequest
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 moreSource§impl Debug for ApiCallRequest
impl Debug for ApiCallRequest
impl Eq for ApiCallRequest
Source§impl PartialEq for ApiCallRequest
impl PartialEq for ApiCallRequest
impl StructuralPartialEq for ApiCallRequest
Auto Trait Implementations§
impl Freeze for ApiCallRequest
impl RefUnwindSafe for ApiCallRequest
impl Send for ApiCallRequest
impl Sync for ApiCallRequest
impl Unpin for ApiCallRequest
impl UnsafeUnpin for ApiCallRequest
impl UnwindSafe for ApiCallRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.