[][src]Struct tink_proto::Keyset

pub struct Keyset {
    pub primary_key_id: u32,
    pub key: Vec<Key>,
}

A Tink user works usually not with single keys, but with keysets, to enable key rotation. The keys in a keyset can belong to different implementations/key types, but must all implement the same primitive. Any given keyset (and any given key) can be used for one primitive only.

Fields

primary_key_id: u32

Identifies key used to generate new crypto data (encrypt, sign). Required.

key: Vec<Key>

Actual keys in the Keyset. Required.

Trait Implementations

impl Clone for Keyset[src]

impl Debug for Keyset[src]

impl Default for Keyset[src]

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

impl Message for Keyset[src]

impl PartialEq<Keyset> for Keyset[src]

impl Serialize for Keyset[src]

impl StructuralPartialEq for Keyset[src]

Auto Trait Implementations

impl RefUnwindSafe for Keyset

impl Send for Keyset

impl Sync for Keyset

impl Unpin for Keyset

impl UnwindSafe for Keyset

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.