Struct 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 duplicate 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 for Entry

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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 Freeze for Entry

§

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 T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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 T
where T: Clone,

Source§

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 T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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.
Source§

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

Source§

fn vzip(self) -> V