#[non_exhaustive]pub struct HookResponse {
pub status: u16,
pub content_type: Option<String>,
pub body: Vec<u8>,
}Expand description
A hook’s HTTP response, whatever its status.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.status: u16The HTTP status.
content_type: Option<String>The Content-Type header, if any.
body: Vec<u8>At most max_response_bytes + 1 bytes of the body.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HookResponse
impl RefUnwindSafe for HookResponse
impl Send for HookResponse
impl Sync for HookResponse
impl Unpin for HookResponse
impl UnsafeUnpin for HookResponse
impl UnwindSafe for HookResponse
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