pub struct UndoRecord {
pub timestamp: String,
pub file_path: String,
pub entry: UndoEntry,
pub encoding: Option<String>,
}Expand description
A record in the persistent undo log file (.ripsed/undo.jsonl).
Fields§
§timestamp: StringUnix epoch seconds as a decimal string (e.g., "1711550400").
file_path: String§entry: UndoEntry§encoding: Option<String>Source-encoding tag of the file when it was read (e.g. "utf-16le").
None (and absent in pre-existing logs) means plain UTF-8. Restoring
re-encodes original_text with this so undo is byte-exact.
Trait Implementations§
Source§impl Clone for UndoRecord
impl Clone for UndoRecord
Source§fn clone(&self) -> UndoRecord
fn clone(&self) -> UndoRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UndoRecord
impl Debug for UndoRecord
Source§impl<'de> Deserialize<'de> for UndoRecord
impl<'de> Deserialize<'de> for UndoRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UndoRecord
impl RefUnwindSafe for UndoRecord
impl Send for UndoRecord
impl Sync for UndoRecord
impl Unpin for UndoRecord
impl UnsafeUnpin for UndoRecord
impl UnwindSafe for UndoRecord
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