pub enum PostUpdated {
Set(DateTime<Utc>),
ByLatest(DateTime<Utc>),
}Available on crate feature
utils only.Expand description
Specifies how to update a post’s updated timestamp.
Variants§
Set(DateTime<Utc>)
Unconditionally set to this value.
ByLatest(DateTime<Utc>)
Set to this value only if it is more recent than the current value.
Trait Implementations§
Source§impl Clone for PostUpdated
impl Clone for PostUpdated
Source§fn clone(&self) -> PostUpdated
fn clone(&self) -> PostUpdated
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PostUpdated
impl RefUnwindSafe for PostUpdated
impl Send for PostUpdated
impl Sync for PostUpdated
impl Unpin for PostUpdated
impl UnsafeUnpin for PostUpdated
impl UnwindSafe for PostUpdated
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more