pub struct HookRequest {
pub cloud: Cloud,
pub service: String,
pub method: Method,
pub url: Url,
pub headers: HeaderMap,
pub body: Option<String>,
}Expand description
A call as an interceptor sees it: the request Alien built, without credentials.
Fields§
§cloud: Cloud§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: Method§url: Url§headers: HeaderMapThe request’s headers, without authorization, proxy-authorization and
x-amz-security-token.
body: Option<String>The body as text, or None when the request has no body. A binary body is never
offered, so matches sees None for it as well, and a call it matches fails.
Trait Implementations§
Source§impl Clone for HookRequest
impl Clone for HookRequest
Auto Trait Implementations§
impl Forget for HookRequest
impl Freeze for HookRequest
impl Move for HookRequest
impl RefUnwindSafe for HookRequest
impl Send for HookRequest
impl Sync for HookRequest
impl Unpin for HookRequest
impl UnsafeUnpin for HookRequest
impl UnwindSafe for HookRequest
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