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
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.