[][src]Struct tink_proto::keyset::Key

pub struct Key {
    pub key_data: Option<KeyData>,
    pub status: i32,
    pub key_id: u32,
    pub output_prefix_type: i32,
}

Fields

key_data: Option<KeyData>

Contains the actual, instantiation specific key proto. By convention, each key proto contains a version field.

status: i32key_id: u32

Identifies a key within a keyset, is a part of metadata of a ciphertext/signature.

output_prefix_type: i32

Determines the prefix of the ciphertexts/signatures produced by this key. This value is copied verbatim from the key template.

Implementations

impl Key[src]

pub fn status(&self) -> KeyStatusType[src]

Returns the enum value of status, or the default if the field is set to an invalid enum value.

pub fn set_status(&mut self, value: KeyStatusType)[src]

Sets status to the provided enum value.

pub fn output_prefix_type(&self) -> OutputPrefixType[src]

Returns the enum value of output_prefix_type, or the default if the field is set to an invalid enum value.

pub fn set_output_prefix_type(&mut self, value: OutputPrefixType)[src]

Sets output_prefix_type to the provided enum value.

Trait Implementations

impl Clone for Key[src]

impl Debug for Key[src]

impl Default for Key[src]

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

impl Message for Key[src]

impl PartialEq<Key> for Key[src]

impl Serialize for Key[src]

impl StructuralPartialEq for Key[src]

Auto Trait Implementations

impl RefUnwindSafe for Key

impl Send for Key

impl Sync for Key

impl Unpin for Key

impl UnwindSafe for Key

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.