pub struct PushMessage {
pub id: String,
pub title: String,
pub body: String,
pub data: String,
}Expand description
Uma notificação push que chegou.
Fields§
§id: StringO id que o serviço deu (vazio se ele não deu).
title: StringO título e o texto da parte “notification” (vazios numa mensagem só de dados).
body: String§data: StringOs dados do app, como um objeto JSON ({} sem dados).
Trait Implementations§
Source§impl Clone for PushMessage
impl Clone for PushMessage
Source§impl Debug for PushMessage
impl Debug for PushMessage
Source§impl Default for PushMessage
impl Default for PushMessage
impl Eq for PushMessage
Source§impl PartialEq for PushMessage
impl PartialEq for PushMessage
impl StructuralPartialEq for PushMessage
Auto Trait Implementations§
impl Forget for PushMessage
impl Freeze for PushMessage
impl Move for PushMessage
impl RefUnwindSafe for PushMessage
impl Send for PushMessage
impl Sync for PushMessage
impl Unpin for PushMessage
impl UnsafeUnpin for PushMessage
impl UnwindSafe for PushMessage
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