Trait kpdb::Times

source ·
pub trait Times {
Show 14 methods // Required methods fn creation_time(&self) -> DateTime<Utc>; fn expires(&self) -> bool; fn expiry_time(&self) -> DateTime<Utc>; fn last_accessed(&self) -> DateTime<Utc>; fn last_modified(&self) -> DateTime<Utc>; fn location_changed(&self) -> DateTime<Utc>; fn usage_count(&self) -> i32; fn set_creation_time(&mut self, _: DateTime<Utc>); fn set_expires(&mut self, _: bool); fn set_expiry_time(&mut self, _: DateTime<Utc>); fn set_last_accessed(&mut self, _: DateTime<Utc>); fn set_last_modified(&mut self, _: DateTime<Utc>); fn set_location_changed(&mut self, _: DateTime<Utc>); fn set_usage_count(&mut self, _: i32);
}
Expand description

Trait for getting and setting of time related data.

Required Methods§

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, _: DateTime<Utc>)

Sets the date and time the implementor was created.

source

fn set_expires(&mut self, _: bool)

Sets whether the implementor expires.

source

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

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

source

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

Sets the date and time the implementor was last accessed.

source

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

Sets the date and time the implementor was last modified.

source

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

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

source

fn set_usage_count(&mut self, _: i32)

Sets the usage count for the implementor.

Implementors§