pub struct PushRequest {
pub endpoint: Url,
pub headers: Vec<(&'static str, String)>,
pub body: Vec<u8>,
}Expand description
One push, ready to send.
Fields§
§endpoint: Url§headers: Vec<(&'static str, String)>TTL, Urgency, Content-Encoding, Content-Type and
Authorization. Never Topic: the push service would see it.
body: Vec<u8>The encrypted payload (aes128gcm).
Trait Implementations§
Source§impl Clone for PushRequest
impl Clone for PushRequest
Auto Trait Implementations§
impl Freeze for PushRequest
impl RefUnwindSafe for PushRequest
impl Send for PushRequest
impl Sync for PushRequest
impl Unpin for PushRequest
impl UnsafeUnpin for PushRequest
impl UnwindSafe for PushRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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