pub struct PushNotificationKeyPair { /* private fields */ }Implementations§
Source§impl PushNotificationKeyPair
impl PushNotificationKeyPair
pub fn generate() -> Self
pub fn from_pkcs8_der(private_key_der: &[u8]) -> Result<Self>
pub fn from_pkcs8_base64(private_key_base64: &str) -> Result<Self>
pub fn private_key_pkcs8_der(&self) -> Result<Vec<u8>>
pub fn private_key_pkcs8_base64(&self) -> Result<String>
pub fn public_key_spki_der(&self) -> Result<Vec<u8>>
pub fn public_key_spki_base64(&self) -> Result<String>
pub fn decrypt_preview_envelope( &self, envelope: &EncryptedPushPreviewEnvelope, ) -> Result<PushNotificationPreviewPayload>
Auto Trait Implementations§
impl Forget for PushNotificationKeyPair
impl Freeze for PushNotificationKeyPair
impl Move for PushNotificationKeyPair
impl RefUnwindSafe for PushNotificationKeyPair
impl Send for PushNotificationKeyPair
impl Sync for PushNotificationKeyPair
impl Unpin for PushNotificationKeyPair
impl UnsafeUnpin for PushNotificationKeyPair
impl UnwindSafe for PushNotificationKeyPair
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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