pub struct KeygenOptions<'a> {
pub file: Option<&'a Path>,
pub force: bool,
pub print_private: bool,
}Expand description
Where a generated VAPID private key is allowed to go.
One of the two has to be chosen, and vapid_keygen refuses when
neither is: the public key is derived from the private one, so a run that
keeps neither produces a key nobody can ever configure.
Fields§
§file: Option<&'a Path>Write the private key here, readable by its owner only.
force: boolOverwrite file if it already exists — a rotation, which
invalidates every existing browser subscription.
print_private: boolPrint the private key to stdout as well.
Auto Trait Implementations§
impl<'a> Freeze for KeygenOptions<'a>
impl<'a> RefUnwindSafe for KeygenOptions<'a>
impl<'a> Send for KeygenOptions<'a>
impl<'a> Sync for KeygenOptions<'a>
impl<'a> Unpin for KeygenOptions<'a>
impl<'a> UnsafeUnpin for KeygenOptions<'a>
impl<'a> UnwindSafe for KeygenOptions<'a>
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