pub struct Message<'a> {
pub api_key: &'a str,
pub body: MessageBody<'a>,
}
Expand description
Represents a FCM message. Construct the FCM message using various utility methods and finally send it.
Examples:
use fcm::MessageBuilder;
let mut builder = MessageBuilder::new("<FCM API Key>", "<registration id>");
builder.dry_run(true);
let message = builder.finalize();
Fields
api_key: &'a str
body: MessageBody<'a>
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Message<'a>
impl<'a> Send for Message<'a>
impl<'a> Sync for Message<'a>
impl<'a> Unpin for Message<'a>
impl<'a> UnwindSafe for Message<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more