[][src]Struct push::crypto::KeyV1

pub struct KeyV1 {
    p256key: EcKeyComponents,
    pub auth: Vec<u8>,
}

Fields

p256key: EcKeyComponentsauth: Vec<u8>

Implementations

impl KeyV1[src]

pub(crate) fn serialize(&self) -> Result<Vec<u8>>[src]

pub(crate) fn deserialize(bytes: &[u8]) -> Result<Self>[src]

pub fn key_pair(&self) -> Result<RcCryptoLocalKeyPair>[src]

pub fn private_key(&self) -> &[u8][src]

pub fn public_key(&self) -> &[u8][src]

Trait Implementations

impl Clone for KeyV1[src]

impl Debug for KeyV1[src]

impl<'de> Deserialize<'de> for KeyV1[src]

impl PartialEq<KeyV1> for KeyV1[src]

impl Serialize for KeyV1[src]

impl StructuralPartialEq for KeyV1[src]

Auto Trait Implementations

impl RefUnwindSafe for KeyV1

impl Send for KeyV1

impl Sync for KeyV1

impl Unpin for KeyV1

impl UnwindSafe for KeyV1

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.