pub trait TouchTarget {
// Required methods
fn touch(&mut self) -> Result<(), RecordError>;
fn touch_field(&mut self, field: &str) -> Result<(), RecordError>;
}Expand description
A dynamically dispatched target that can be touched.
Required Methods§
Sourcefn touch(&mut self) -> Result<(), RecordError>
fn touch(&mut self) -> Result<(), RecordError>
Updates the conventional updated_at timestamp.
Sourcefn touch_field(&mut self, field: &str) -> Result<(), RecordError>
fn touch_field(&mut self, field: &str) -> Result<(), RecordError>
Updates a specific timestamp column.