pub struct JmapPushConfig {
pub vapid_key_path: Option<PathBuf>,
pub admin_email: String,
}Expand description
JMAP WebPush delivery configuration (RFC 8030 + RFC 8444 VAPID).
Fields§
§vapid_key_path: Option<PathBuf>Path to the VAPID ES256 private key PEM file.
If the file does not exist when the server starts it will be generated and written to this path automatically. Omit this field to use an ephemeral in-memory key (the key changes on every restart, which forces all push subscriptions to re-verify).
admin_email: Stringmailto: URI or email address used as the sub claim in VAPID JWTs.
RFC 8444 requires this to identify a point of contact for push
endpoint operators. Defaults to "mailto:admin@localhost".
Trait Implementations§
Source§impl Clone for JmapPushConfig
impl Clone for JmapPushConfig
Source§fn clone(&self) -> JmapPushConfig
fn clone(&self) -> JmapPushConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JmapPushConfig
impl Debug for JmapPushConfig
Source§impl Default for JmapPushConfig
impl Default for JmapPushConfig
Source§impl<'de> Deserialize<'de> for JmapPushConfig
impl<'de> Deserialize<'de> for JmapPushConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for JmapPushConfig
impl RefUnwindSafe for JmapPushConfig
impl Send for JmapPushConfig
impl Sync for JmapPushConfig
impl Unpin for JmapPushConfig
impl UnsafeUnpin for JmapPushConfig
impl UnwindSafe for JmapPushConfig
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