pub struct WebhookResponse {
pub status: u16,
pub content_type: &'static str,
pub body: Vec<u8>,
}Expand description
The response to a webhook request.
Fields§
§status: u16HTTP status.
content_type: &'static strContent-Type of the body.
body: Vec<u8>Body.
Implementations§
Trait Implementations§
Source§impl Clone for WebhookResponse
impl Clone for WebhookResponse
Source§impl Debug for WebhookResponse
impl Debug for WebhookResponse
impl Eq for WebhookResponse
Source§impl PartialEq for WebhookResponse
impl PartialEq for WebhookResponse
impl StructuralPartialEq for WebhookResponse
Auto Trait Implementations§
impl Freeze for WebhookResponse
impl RefUnwindSafe for WebhookResponse
impl Send for WebhookResponse
impl Sync for WebhookResponse
impl Unpin for WebhookResponse
impl UnsafeUnpin for WebhookResponse
impl UnwindSafe for WebhookResponse
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