Enum kpdb::StringKey [] [src]

pub enum StringKey {
    Notes,
    Other(String),
    Password,
    Title,
    Url,
    Username,
}

A key for the map with strings.

Variants

The value is a notes string.

The value is an other string with specified name.

The value is a password string.

The value is a title string.

The value is a URL string.

The value is a username string.

Methods

impl StringKey
[src]

[src]

Create a string key from a string.

Examples

use kpdb::StringKey;

let notes_key = StringKey::from_string("Notes");
let password_key = StringKey::from_string("Password");
let title_key = StringKey::from_string("Title");
let url_key = StringKey::from_string("URL");
let username_key = StringKey::from_string("UserName");
let other_key = StringKey::from_string("Foo");

[src]

Gets the string representation of the string key.

Examples

use kpdb::StringKey;

let notes_key = StringKey::Notes;
let string = notes_key.to_string();

Trait Implementations

impl Clone for StringKey
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for StringKey
[src]

[src]

Formats the value using the given formatter.

impl Eq for StringKey
[src]

impl Hash for StringKey
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for StringKey
[src]

[src]

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

[src]

This method tests for !=.

impl PartialOrd for StringKey
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for StringKey
[src]

[src]

This method returns an Ordering between self and other. Read more

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more