Enum kpdb::StringValue [] [src]

pub enum StringValue {
    Plain(String),
    Protected(SecStr),
}

A value for the map with strings.

Variants

Plain string value.

Protected string value.

Methods

impl StringValue
[src]

[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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for StringValue
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for StringValue
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.