[−][src]Struct tink_proto::KeyData
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<'de> Deserialize<'de> for KeyData
[src][+]
impl Message for KeyData
[src][+]
impl PartialEq<KeyData> for KeyData
[src][+]
impl Serialize 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][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,