Enum kpdb::BinaryValue
source · pub enum BinaryValue {
Plain(Vec<u8>),
Protected(SecStr),
Ref(BinaryId),
}
Expand description
A value for entry’s map with binaries.
Variants§
Plain(Vec<u8>)
Plain binary value.
Protected(SecStr)
Protected binary value.
Ref(BinaryId)
Reference to an item in the global binaries map.
Trait Implementations§
source§impl Clone for BinaryValue
impl Clone for BinaryValue
source§fn clone(&self) -> BinaryValue
fn clone(&self) -> BinaryValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BinaryValue
impl Debug for BinaryValue
source§impl PartialEq<BinaryValue> for BinaryValue
impl PartialEq<BinaryValue> for BinaryValue
source§fn eq(&self, other: &BinaryValue) -> bool
fn eq(&self, other: &BinaryValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BinaryValue
Auto Trait Implementations§
impl RefUnwindSafe for BinaryValue
impl Send for BinaryValue
impl Sync for BinaryValue
impl Unpin for BinaryValue
impl UnwindSafe for BinaryValue
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more