pub struct InterceptedRequest {
pub cloud: InterceptedCloud,
pub service: String,
pub method: String,
pub url: String,
pub headers: Vec<(String, String)>,
pub body: Option<String>,
pub tenant_id: Option<String>,
}Expand description
A request as an interceptor sees it: no credential headers, and a text body or none.
Fields§
§cloud: InterceptedCloudThe API the call goes to
service: StringThe service the call is signed for: the SigV4 signing name on AWS (rds), Alien’s
endpoint key on Google Cloud (cloudsql), management for Azure Resource Manager, and
kubernetes for the API server
method: StringThe HTTP method
url: StringThe full URL
headers: Vec<(String, String)>The headers, in order, a name once per value
body: Option<String>The body as text, or None when the request has none
tenant_id: Option<String>The Azure tenant the call is made in, on Azure
Trait Implementations§
Source§impl Clone for InterceptedRequest
impl Clone for InterceptedRequest
Source§impl Debug for InterceptedRequest
impl Debug for InterceptedRequest
Source§impl<'de> Deserialize<'de> for InterceptedRequest
impl<'de> Deserialize<'de> for InterceptedRequest
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
impl Eq for InterceptedRequest
Source§impl PartialEq for InterceptedRequest
impl PartialEq for InterceptedRequest
Source§impl Serialize for InterceptedRequest
impl Serialize for InterceptedRequest
impl StructuralPartialEq for InterceptedRequest
Auto Trait Implementations§
impl Forget for InterceptedRequest
impl Freeze for InterceptedRequest
impl Move for InterceptedRequest
impl RefUnwindSafe for InterceptedRequest
impl Send for InterceptedRequest
impl Sync for InterceptedRequest
impl Unpin for InterceptedRequest
impl UnsafeUnpin for InterceptedRequest
impl UnwindSafe for InterceptedRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.