Struct tink_proto::KeyData[][src]

pub struct KeyData {
    pub type_url: String,
    pub value: Vec<u8>,
    pub key_material_type: i32,
}

The actual *Key-proto is wrapped in a KeyData message, which in addition to this serialized proto contains also type_url identifying the definition of *Key-proto (as in KeyFormat-message), and some extra metadata about the type key material.

Fields

type_url: String

Required.

In format type.googleapis.com/packagename.messagename

value: Vec<u8>

Required.

contains specific serialized *Key proto

key_material_type: i32

Required.

Implementations

impl KeyData[src]

pub fn key_material_type(&self) -> KeyMaterialType[src]

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

pub fn set_key_material_type(&mut self, value: KeyMaterialType)[src]

Sets key_material_type to the provided enum value.

Trait Implementations

impl Clone for KeyData[src]

impl Debug for KeyData[src]

impl Default for KeyData[src]

impl Message for KeyData[src]

impl PartialEq<KeyData> for KeyData[src]

impl StructuralPartialEq for KeyData[src]

Auto Trait Implementations

impl RefUnwindSafe for KeyData

impl Send for KeyData

impl Sync for KeyData

impl Unpin for KeyData

impl UnwindSafe for KeyData

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> 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.