Struct kpdb::Entry
[−]
[src]
pub struct Entry { pub associations: Vec<Association>, pub auto_type_def_sequence: String, pub auto_type_enabled: bool, pub auto_type_obfuscation: Obfuscation, pub background_color: Option<Color>, pub binaries: HashMap<BinaryKey, BinaryValue>, pub creation_time: DateTime<Utc>, pub custom_icon_uuid: Option<CustomIconUuid>, pub expires: bool, pub expiry_time: DateTime<Utc>, pub foreground_color: Option<Color>, pub history: Vec<Entry>, pub icon: Icon, pub last_accessed: DateTime<Utc>, pub last_modified: DateTime<Utc>, pub location_changed: DateTime<Utc>, pub override_url: String, pub strings: StringsMap, pub tags: String, pub usage_count: i32, pub uuid: EntryUuid, }
An entry in the database.
Fields
associations: Vec<Association>
Auto-type associations.
auto_type_def_sequence: String
Default auto-type sequence.
auto_type_enabled: bool
Whether auto-type is enabled.
auto_type_obfuscation: Obfuscation
The type of obfuscation to use for auto-typing.
background_color: Option<Color>
The background color.
binaries: HashMap<BinaryKey, BinaryValue>
Map with binaries.
creation_time: DateTime<Utc>
The date and time this entry was created.
custom_icon_uuid: Option<CustomIconUuid>
The identifier of this entry's custom icon if any.
expires: bool
Whether this entry expires.
expiry_time: DateTime<Utc>
The date and time this entry will expire if expires is true.
foreground_color: Option<Color>
The foreground color.
history: Vec<Entry>
This entry's history.
icon: Icon
This entry's icon.
last_accessed: DateTime<Utc>
The date and time this entry was last accessed.
last_modified: DateTime<Utc>
The date and time this entry was last modified.
location_changed: DateTime<Utc>
The date and time the location of this entry was changed.
override_url: String
Override URL.
strings: StringsMap
Map with strings.
The tags associated with this entry.
usage_count: i32
The usage count of this entry.
uuid: EntryUuid
The identifier of this entry.
Methods
impl Entry
[src]
fn new() -> Entry
[src]
Create a new entry.
fn notes(&self) -> Option<&str>
[src]
Gets the notes string if any.
fn other(&self, key: StringKey) -> Option<&str>
[src]
Gets an other string if any.
fn password(&self) -> Option<&str>
[src]
Gets the password string if any.
fn set_notes<S: Into<String>>(&mut self, val: S)
[src]
Sets the notes string value.
fn set_other<S: Into<String>>(&mut self, key: StringKey, val: S)
[src]
Sets an other string value.
fn set_password<S: Into<String>>(&mut self, val: S)
[src]
Sets the password string value.
fn set_title<S: Into<String>>(&mut self, val: S)
[src]
Sets the title string value.
fn set_url<S: Into<String>>(&mut self, val: S)
[src]
Sets the url string value.
fn set_username<S: Into<String>>(&mut self, val: S)
[src]
Sets the username string value.
fn title(&self) -> Option<&str>
[src]
Gets the title string if any.
fn url(&self) -> Option<&str>
[src]
Gets the url string if any.
fn username(&self) -> Option<&str>
[src]
Gets the username string if any.
Trait Implementations
impl Clone for Entry
[src]
fn clone(&self) -> Entry
[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 Entry
[src]
impl PartialEq for Entry
[src]
fn eq(&self, __arg_0: &Entry) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Entry) -> bool
[src]
This method tests for !=
.