pub struct NotificationBuilder { /* private fields */ }
Implementations§
Source§impl NotificationBuilder
impl NotificationBuilder
pub fn new(title: &str, token: &str) -> Self
pub fn message(self, message: &str) -> Self
pub fn android_channel_id(self, android_channel_id: &str) -> Self
pub fn data<T: Serialize>(self, data: T) -> Self
pub fn apn_sound(self, apn_sound: String) -> Self
pub fn build(self) -> FirebasePayload
Trait Implementations§
Source§impl Default for NotificationBuilder
impl Default for NotificationBuilder
Source§fn default() -> NotificationBuilder
fn default() -> NotificationBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NotificationBuilder
impl RefUnwindSafe for NotificationBuilder
impl Send for NotificationBuilder
impl Sync for NotificationBuilder
impl Unpin for NotificationBuilder
impl UnwindSafe for NotificationBuilder
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