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§
Sourcefn creation_time(&self) -> DateTime<Utc>
fn creation_time(&self) -> DateTime<Utc>
Gets the date and time the implementor was created.
Sourcefn expiry_time(&self) -> DateTime<Utc>
fn expiry_time(&self) -> DateTime<Utc>
Gets the date and time the implementor will expire if expires is true.
Sourcefn last_accessed(&self) -> DateTime<Utc>
fn last_accessed(&self) -> DateTime<Utc>
Gets the date and time the implementor was last accessed.
Sourcefn last_modified(&self) -> DateTime<Utc>
fn last_modified(&self) -> DateTime<Utc>
Gets the date and time the implementor was last modified.
Sourcefn location_changed(&self) -> DateTime<Utc>
fn location_changed(&self) -> DateTime<Utc>
Gets the date and time the location of the implementor was changed.
Sourcefn usage_count(&self) -> i32
fn usage_count(&self) -> i32
Gets the usage count for the implementor.
Sourcefn set_creation_time(&mut self, _: DateTime<Utc>)
fn set_creation_time(&mut self, _: DateTime<Utc>)
Sets the date and time the implementor was created.
Sourcefn set_expires(&mut self, _: bool)
fn set_expires(&mut self, _: bool)
Sets whether the implementor expires.
Sourcefn set_expiry_time(&mut self, _: DateTime<Utc>)
fn set_expiry_time(&mut self, _: DateTime<Utc>)
Sets the date and time the implementor will expire if expires is true.
Sourcefn set_last_accessed(&mut self, _: DateTime<Utc>)
fn set_last_accessed(&mut self, _: DateTime<Utc>)
Sets the date and time the implementor was last accessed.
Sourcefn set_last_modified(&mut self, _: DateTime<Utc>)
fn set_last_modified(&mut self, _: DateTime<Utc>)
Sets the date and time the implementor was last modified.
Sourcefn set_location_changed(&mut self, _: DateTime<Utc>)
fn set_location_changed(&mut self, _: DateTime<Utc>)
Sets the date and time the location of the implementor was changed.
Sourcefn set_usage_count(&mut self, _: i32)
fn set_usage_count(&mut self, _: i32)
Sets the usage count for the implementor.