Struct kpdb::Entry

source ·
pub struct Entry {
Show 22 fields 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, pub parent: GroupUuid,
}
Expand description

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.

§tags: String

The tags associated with this entry.

§usage_count: i32

The usage count of this entry.

§uuid: EntryUuid

The identifier of this entry.

§parent: GroupUuid

The parent groups GroupUUID.

Implementations§

source§

impl Entry

source

pub fn new() -> Entry

Create a new entry.

source

pub fn notes(&self) -> Option<&str>

Gets the notes string if any.

source

pub fn other(&self, key: StringKey) -> Option<&str>

Gets an other string if any.

source

pub fn password(&self) -> Option<&str>

Gets the password string if any.

source

pub fn set_notes<S: Into<String>>(&mut self, val: S)

Sets the notes string value.

source

pub fn set_other<S: Into<String>>(&mut self, key: StringKey, val: S)

Sets an other string value.

source

pub fn set_password<S: Into<String>>(&mut self, val: S)

Sets the password string value.

source

pub fn set_title<S: Into<String>>(&mut self, val: S)

Sets the title string value.

source

pub fn set_url<S: Into<String>>(&mut self, val: S)

Sets the url string value.

source

pub fn set_username<S: Into<String>>(&mut self, val: S)

Sets the username string value.

source

pub fn title(&self) -> Option<&str>

Gets the title string if any.

source

pub fn url(&self) -> Option<&str>

Gets the url string if any.

source

pub fn username(&self) -> Option<&str>

Gets the username string if any.

Trait Implementations§

source§

impl Clone for Entry

source§

fn clone(&self) -> Entry

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Entry

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Entry

source§

fn default() -> Entry

Returns the “default value” for a type. Read more
source§

impl PartialEq<Entry> for Entry

source§

fn eq(&self, other: &Entry) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Times for Entry

source§

fn creation_time(&self) -> DateTime<Utc>

Gets the date and time the implementor was created.
source§

fn expires(&self) -> bool

Gets whether the implementor expires.
source§

fn expiry_time(&self) -> DateTime<Utc>

Gets the date and time the implementor will expire if expires is true.
source§

fn last_accessed(&self) -> DateTime<Utc>

Gets the date and time the implementor was last accessed.
source§

fn last_modified(&self) -> DateTime<Utc>

Gets the date and time the implementor was last modified.
source§

fn location_changed(&self) -> DateTime<Utc>

Gets the date and time the location of the implementor was changed.
source§

fn usage_count(&self) -> i32

Gets the usage count for the implementor.
source§

fn set_creation_time(&mut self, val: DateTime<Utc>)

Sets the date and time the implementor was created.
source§

fn set_expires(&mut self, val: bool)

Sets whether the implementor expires.
source§

fn set_expiry_time(&mut self, val: DateTime<Utc>)

Sets the date and time the implementor will expire if expires is true.
source§

fn set_last_accessed(&mut self, val: DateTime<Utc>)

Sets the date and time the implementor was last accessed.
source§

fn set_last_modified(&mut self, val: DateTime<Utc>)

Sets the date and time the implementor was last modified.
source§

fn set_location_changed(&mut self, val: DateTime<Utc>)

Sets the date and time the location of the implementor was changed.
source§

fn set_usage_count(&mut self, val: i32)

Sets the usage count for the implementor.
source§

impl StructuralPartialEq for Entry

Auto Trait Implementations§

§

impl RefUnwindSafe for Entry

§

impl Send for Entry

§

impl Sync for Entry

§

impl Unpin for Entry

§

impl UnwindSafe for Entry

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V