Struct keepass_ng::db::Times
source · pub struct Times { /* private fields */ }Expand description
Timestamps for a Group or Entry
Implementations§
source§impl Times
impl Times
pub fn get_expires(&self) -> bool
pub fn set_expires(&mut self, expires: bool)
pub fn get_usage_count(&self) -> usize
pub fn set_usage_count(&mut self, usage_count: usize)
sourcepub fn get_expiry_time(&self) -> Option<NaiveDateTime>
pub fn get_expiry_time(&self) -> Option<NaiveDateTime>
Convenience method for getting the time that the entry expires. This value is usually only meaningful/useful when expires == true
pub fn set_expiry_time(&mut self, time: Option<NaiveDateTime>)
pub fn get_last_modification(&self) -> Option<NaiveDateTime>
pub fn set_last_modification(&mut self, time: Option<NaiveDateTime>)
pub fn get_creation(&self) -> Option<NaiveDateTime>
pub fn set_creation(&mut self, time: Option<NaiveDateTime>)
pub fn get_last_access(&self) -> Option<NaiveDateTime>
pub fn set_last_access(&mut self, time: Option<NaiveDateTime>)
pub fn get_location_changed(&self) -> Option<NaiveDateTime>
pub fn set_location_changed(&mut self, time: Option<NaiveDateTime>)
pub fn now() -> NaiveDateTime
pub fn epoch() -> NaiveDateTime
pub fn new() -> Times
Trait Implementations§
source§impl PartialEq for Times
impl PartialEq for Times
impl Eq for Times
impl StructuralPartialEq for Times
Auto Trait Implementations§
impl Freeze for Times
impl RefUnwindSafe for Times
impl Send for Times
impl Sync for Times
impl Unpin for Times
impl UnwindSafe for Times
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)