[][src]Struct tink_proto::KeyTemplate

pub struct KeyTemplate {
    pub type_url: String,
    pub value: Vec<u8>,
    pub output_prefix_type: i32,
}

Fields

type_url: String

Required.

in format type.googleapis.com/packagename.messagename

value: Vec<u8>

Optional. If missing, it means the key type doesn't require a *KeyFormat proto.

contains specific serialized *KeyFormat proto

output_prefix_type: i32

Optional. If missing, uses OutputPrefixType.TINK.

Implementations

impl KeyTemplate[src]

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 KeyTemplate[src]

impl Debug for KeyTemplate[src]

impl Default for KeyTemplate[src]

impl Message for KeyTemplate[src]

impl PartialEq<KeyTemplate> for KeyTemplate[src]

impl StructuralPartialEq for KeyTemplate[src]

Auto Trait Implementations

impl RefUnwindSafe for KeyTemplate

impl Send for KeyTemplate

impl Sync for KeyTemplate

impl Unpin for KeyTemplate

impl UnwindSafe for KeyTemplate

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.