pub struct GuestRequest {Show 20 fields
pub method: String,
pub handler: String,
pub headers: Option<Map<String, Value>>,
pub body: Value,
pub body_raw_b64: Option<String>,
pub tenant: String,
pub service: String,
pub auth: Option<Value>,
pub posture: Option<Value>,
pub caller: Option<Value>,
pub api_key: Option<Value>,
pub scope: Option<Value>,
pub path: Option<String>,
pub path_params: Option<Vec<(String, String)>>,
pub query_string: Option<String>,
pub query: Option<BTreeMap<String, Vec<String>>>,
pub client_ip: Option<String>,
pub multipart: Option<Vec<MultipartField>>,
pub subscription: Option<SubscriptionMeta>,
pub job: Option<JobMeta>,
}Expand description
Keys a delivery does not carry are absent from the JSON, so each kind of request keeps exactly the keys it has always had.
Fields§
§method: String§handler: String§headers: Option<Map<String, Value>>Lowercase names.
body: Value§body_raw_b64: Option<String>The exact bytes the caller sent, as base64; empty without a body.
tenant: String§service: String§auth: Option<Value>Some(Value::Null) is an anonymous caller.
posture: Option<Value>Some(Value::Null) is a route that declares no posture.
caller: Option<Value>§api_key: Option<Value>§scope: Option<Value>§path: Option<String>§path_params: Option<Vec<(String, String)>>In path order.
query_string: Option<String>§query: Option<BTreeMap<String, Vec<String>>>Every value of every key, in order.
client_ip: Option<String>§multipart: Option<Vec<MultipartField>>§subscription: Option<SubscriptionMeta>§job: Option<JobMeta>Implementations§
Trait Implementations§
Source§impl Clone for GuestRequest
impl Clone for GuestRequest
Source§impl Debug for GuestRequest
impl Debug for GuestRequest
Source§impl Default for GuestRequest
impl Default for GuestRequest
Source§impl<'de> Deserialize<'de> for GuestRequest
impl<'de> Deserialize<'de> for GuestRequest
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
Source§impl PartialEq for GuestRequest
impl PartialEq for GuestRequest
Source§impl Serialize for GuestRequest
impl Serialize for GuestRequest
impl StructuralPartialEq for GuestRequest
Auto Trait Implementations§
impl Freeze for GuestRequest
impl RefUnwindSafe for GuestRequest
impl Send for GuestRequest
impl Sync for GuestRequest
impl Unpin for GuestRequest
impl UnsafeUnpin for GuestRequest
impl UnwindSafe for GuestRequest
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