pub struct PushConfig {
pub sender_id: String,
pub project_id: String,
pub app_id: String,
pub api_key: String,
pub vapid_key: String,
pub show_in_foreground: bool,
}Expand description
A configuração do registro. Cada serviço usa a parte dele: o FCM (Android), as quatro
primeiras, que estão no google-services.json; o Web Push, a chave VAPID pública.
Fields§
§sender_id: StringO número do projeto do Firebase (project_number, o “sender id”).
project_id: StringO id do projeto (project_id).
app_id: StringO id do app no Firebase (mobilesdk_app_id: 1:123:android:abc).
api_key: StringA chave da API (current_key).
vapid_key: StringA chave VAPID pública (base64url) do servidor que envia o Web Push.
show_in_foreground: boolCom o app aberto, a mensagem com título também aparece como notificação do sistema
(sem isso, só o on_message).
Trait Implementations§
Source§impl Clone for PushConfig
impl Clone for PushConfig
Source§impl Debug for PushConfig
impl Debug for PushConfig
Source§impl Default for PushConfig
impl Default for PushConfig
impl Eq for PushConfig
Source§impl PartialEq for PushConfig
impl PartialEq for PushConfig
impl StructuralPartialEq for PushConfig
Auto Trait Implementations§
impl Forget for PushConfig
impl Freeze for PushConfig
impl Move for PushConfig
impl RefUnwindSafe for PushConfig
impl Send for PushConfig
impl Sync for PushConfig
impl Unpin for PushConfig
impl UnsafeUnpin for PushConfig
impl UnwindSafe for PushConfig
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