pub enum PushKey {
ApnsKeyP8,
ApnsKeyId,
ApnsTeamId,
ApnsTopic,
ApnsHost,
FcmServiceAccountJson,
VapidPrivateKey,
VapidSubject,
}Expand description
One push environment variable, as a type.
The table entry carries one of these and so does every lookup, so no
variable is ever named a second time as a bare string literal: the name
is spelled once, in PushKey::name, and a lookup for a key the table
does not carry does not compile.
That is the difference between a rename being a compile error and being a
production incident. With a name-keyed lookup and an unwrap_or_default,
renaming a table entry left the transport still reporting Complete
while the credential handed to the adapter was "" — which for
APNS_HOST is a silent sandbox default in production and
BadDeviceToken on every send.
Variants§
ApnsKeyP8
The .p8 provider key, whole.
ApnsKeyId
The .p8 key’s 10-character id.
ApnsTeamId
The Apple team id.
ApnsTopic
The app’s bundle id.
ApnsHost
production or sandbox.
FcmServiceAccountJson
The Google service-account JSON, whole.
VapidPrivateKey
The VAPID private key.
VapidSubject
The VAPID contact URI.
Implementations§
Trait Implementations§
impl Copy for PushKey
impl Eq for PushKey
impl StructuralPartialEq for PushKey
Auto Trait Implementations§
impl Freeze for PushKey
impl RefUnwindSafe for PushKey
impl Send for PushKey
impl Sync for PushKey
impl Unpin for PushKey
impl UnsafeUnpin for PushKey
impl UnwindSafe for PushKey
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.