Skip to main content

vapid_keys

Function vapid_keys 

Source
pub fn vapid_keys() -> Result<(String, String, String), String>
Expand description

Retrieves the VAPID keys from environment variables.

§Returns

A Result containing a tuple of the VAPID private key, public key, and email.

§Usage

This function is used to retrieve the VAPID keys from environment variables. It is usually called with:

let (vapid_private_key, vapid_public_key, vapid_email) = vapid_keys().unwrap();