Enum kpdb::StringKey
[−]
[src]
pub enum StringKey { Notes, Other(String), Password, Title, Url, Username, }
A key for the map with strings.
Variants
Notes
The value is a notes string.
Other(String)
The value is an other string with specified name.
Password
The value is a password string.
Title
The value is a title string.
Url
The value is a URL string.
Username
The value is a username string.
Methods
impl StringKey
[src]
fn from_string(string: &str) -> StringKey
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");
fn to_string(&self) -> String
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]
fn clone(&self) -> StringKey
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 StringKey
[src]
impl Eq for StringKey
[src]
impl Hash for StringKey
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl PartialEq for StringKey
[src]
fn eq(&self, __arg_0: &StringKey) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &StringKey) -> bool
This method tests for !=
.
impl PartialOrd for StringKey
[src]
fn partial_cmp(&self, __arg_0: &StringKey) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &StringKey) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &StringKey) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &StringKey) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &StringKey) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more