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<S: Into<String>>(value: S, protected: bool) -> StringValue[src]
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[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for StringValue[src]
impl PartialEq for StringValue[src]
fn eq(&self, __arg_0: &StringValue) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &StringValue) -> bool[src]
This method tests for !=.