pub trait Times {
Show 14 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

Gets the date and time the implementor was created.

Gets whether the implementor expires.

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

Gets the date and time the implementor was last accessed.

Gets the date and time the implementor was last modified.

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

Gets the usage count for the implementor.

Sets the date and time the implementor was created.

Sets whether the implementor expires.

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

Sets the date and time the implementor was last accessed.

Sets the date and time the implementor was last modified.

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

Sets the usage count for the implementor.

Implementors