pub struct Meta {Show 21 fields
pub generator: Option<String>,
pub database_name: Option<String>,
pub database_name_changed: Option<NaiveDateTime>,
pub database_description: Option<String>,
pub database_description_changed: Option<NaiveDateTime>,
pub default_username: Option<String>,
pub default_username_changed: Option<NaiveDateTime>,
pub maintenance_history_days: Option<usize>,
pub color: Option<Color>,
pub master_key_changed: Option<NaiveDateTime>,
pub master_key_change_rec: Option<isize>,
pub master_key_change_force: Option<isize>,
pub memory_protection: Option<MemoryProtection>,
pub entry_templates_group: Option<Uuid>,
pub entry_templates_group_changed: Option<NaiveDateTime>,
pub last_selected_group: Option<Uuid>,
pub last_top_visible_group: Option<Uuid>,
pub history_max_items: Option<isize>,
pub history_max_size: Option<isize>,
pub settings_changed: Option<NaiveDateTime>,
pub custom_data: HashMap<String, CustomDataItem>,
/* private fields */
}Expand description
Database metadata
Fields§
§generator: Option<String>the program that generated the database file.
database_name: Option<String>name of the database
database_name_changed: Option<NaiveDateTime>time the database name was last changed
database_description: Option<String>description of the database
database_description_changed: Option<NaiveDateTime>time the database description was last changed
default_username: Option<String>default username
default_username_changed: Option<NaiveDateTime>time the default username was last changed
maintenance_history_days: Option<usize>number of days of maintenance history to keep
color: Option<Color>color code for the database
master_key_changed: Option<NaiveDateTime>time the master key was last changed
master_key_change_rec: Option<isize>§master_key_change_force: Option<isize>§memory_protection: Option<MemoryProtection>memory protection settings
entry_templates_group: Option<Uuid>UUID of the group containing entry templates
entry_templates_group_changed: Option<NaiveDateTime>last time the group containing entry templates was changed
last_selected_group: Option<Uuid>UUID of the last selected group
last_top_visible_group: Option<Uuid>UUID of the last top-visible group
history_max_items: Option<isize>Maximum number of items of history to keep
history_max_size: Option<isize>Maximum size of the history to keep
settings_changed: Option<NaiveDateTime>Last time the settings were changed
custom_data: HashMap<String, CustomDataItem>Additional custom data fields
Implementations§
Source§impl Meta
impl Meta
pub fn custom_icon(&self, uuid: Uuid) -> Option<&CustomIcon>
Sourcepub fn set_recycle_bin_enabled(&mut self, enabled: bool)
pub fn set_recycle_bin_enabled(&mut self, enabled: bool)
Set recycle bin enabled
pub fn recycle_bin_enabled(&self) -> bool
pub fn recycle_bin_changed(&self) -> Option<NaiveDateTime>
Sourcepub fn set_recycle_bin_changed(&mut self)
pub fn set_recycle_bin_changed(&mut self)
Set recycle bin changed time
Trait Implementations§
impl Eq for Meta
impl StructuralPartialEq for Meta
Auto Trait Implementations§
impl Freeze for Meta
impl RefUnwindSafe for Meta
impl Send for Meta
impl Sync for Meta
impl Unpin for Meta
impl UnsafeUnpin for Meta
impl UnwindSafe for Meta
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more