[][src]Struct tink_proto::keyset_info::KeyInfo

pub struct KeyInfo {
    pub type_url: String,
    pub status: i32,
    pub key_id: u32,
    pub output_prefix_type: i32,
}

Fields

type_url: String

the type url of this key, e.g., type.googleapis.com/google.crypto.tink.HmacKey.

status: i32

See Keyset.Key.status.

key_id: u32

See Keyset.Key.key_id.

output_prefix_type: i32

See Keyset.Key.output_prefix_type.

Implementations

impl KeyInfo[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 KeyInfo[src]

impl Debug for KeyInfo[src]

impl Default for KeyInfo[src]

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

impl Message for KeyInfo[src]

impl PartialEq<KeyInfo> for KeyInfo[src]

impl Serialize for KeyInfo[src]

impl StructuralPartialEq for KeyInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for KeyInfo

impl Send for KeyInfo

impl Sync for KeyInfo

impl Unpin for KeyInfo

impl UnwindSafe for KeyInfo

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.