Skip to main content

keepass/db/
fields.rs

1//! Standard field names for entries.
2//!
3//! This can be used with [Entry::get][crate::db::Entry::get] and [Entry::set][crate::db::Entry::set].
4
5/// The title of the entry
6pub const TITLE: &str = "Title";
7
8/// The user name associated with the entry
9pub const USERNAME: &str = "UserName";
10
11/// The password associated with the entry
12pub const PASSWORD: &str = "Password";
13
14/// TOTP data associated with the entry
15pub const OTP: &str = "otp";
16
17/// The primary URL associated with the entry
18pub const URL: &str = "URL";
19
20/// Notes associated with the entry
21pub const NOTES: &str = "Notes";
22
23/// Collection of known field names, for more convenient iteration
24pub const KNOWN_FIELDS: [&str; 5] = [TITLE, USERNAME, PASSWORD, URL, NOTES];