Struct kvproto::encryptionpb::DataKey[][src]

pub struct DataKey {
    pub key: Vec<u8>,
    pub method: EncryptionMethod,
    pub creation_time: u64,
    pub was_exposed: bool,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

key: Vec<u8>method: EncryptionMethodcreation_time: u64was_exposed: boolunknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl DataKey[src]

pub fn new() -> DataKey[src]

pub fn get_key(&self) -> &[u8][src]

pub fn clear_key(&mut self)[src]

pub fn set_key(&mut self, v: Vec<u8>)[src]

pub fn mut_key(&mut self) -> &mut Vec<u8>[src]

pub fn take_key(&mut self) -> Vec<u8>[src]

pub fn get_method(&self) -> EncryptionMethod[src]

pub fn clear_method(&mut self)[src]

pub fn set_method(&mut self, v: EncryptionMethod)[src]

pub fn get_creation_time(&self) -> u64[src]

pub fn clear_creation_time(&mut self)[src]

pub fn set_creation_time(&mut self, v: u64)[src]

pub fn get_was_exposed(&self) -> bool[src]

pub fn clear_was_exposed(&mut self)[src]

pub fn set_was_exposed(&mut self, v: bool)[src]

Trait Implementations

impl Clear for DataKey[src]

impl Clone for DataKey[src]

impl Debug for DataKey[src]

impl Default for DataKey[src]

impl<'a> Default for &'a DataKey[src]

impl Message for DataKey[src]

impl PartialEq<DataKey> for DataKey[src]

impl PbPrint for DataKey[src]

impl ProtobufValue for DataKey[src]

impl StructuralPartialEq for DataKey[src]

Auto Trait Implementations

impl RefUnwindSafe for DataKey

impl Send for DataKey

impl Sync for DataKey

impl Unpin for DataKey

impl UnwindSafe for DataKey

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.