Struct web_push::WebPushPayload
source · pub struct WebPushPayload {
pub content: Vec<u8>,
pub crypto_headers: Vec<(&'static str, String)>,
pub content_encoding: ContentEncoding,
}
Expand description
The push content payload, already in an encrypted form.
Fields§
§content: Vec<u8>
Encrypted content data.
crypto_headers: Vec<(&'static str, String)>
Headers depending on the authorization scheme and encryption standard.
content_encoding: ContentEncoding
The encryption standard.
Trait Implementations§
source§impl Debug for WebPushPayload
impl Debug for WebPushPayload
source§impl PartialEq for WebPushPayload
impl PartialEq for WebPushPayload
source§fn eq(&self, other: &WebPushPayload) -> bool
fn eq(&self, other: &WebPushPayload) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for WebPushPayload
Auto Trait Implementations§
impl RefUnwindSafe for WebPushPayload
impl Send for WebPushPayload
impl Sync for WebPushPayload
impl Unpin for WebPushPayload
impl UnwindSafe for WebPushPayload
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