Enum kpdb::StringValue
[−]
[src]
pub enum StringValue { Plain(String), Protected(SecStr), }
A value for the map with strings.
Variants
Plain(String)
Plain string value.
Protected(SecStr)
Protected string value.
Methods
impl StringValue
[src]
fn new(value: &str, protected: bool) -> StringValue
Create a new string value.
Examples
use kpdb::StringValue; let plain_value = StringValue::new("plain", false); let protected_value = StringValue::new("secret", true);
Trait Implementations
impl Clone for StringValue
[src]
fn clone(&self) -> StringValue
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for StringValue
[src]
impl PartialEq for StringValue
[src]
fn eq(&self, __arg_0: &StringValue) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &StringValue) -> bool
This method tests for !=
.