pub enum EntryRef {
Path(PathBuf),
Id(String),
}Expand description
A reference to a journal entry — either a filesystem path or a CarettaId prefix.
This is the canonical input type for commands that operate on a single entry
(show, fix, remove, etc.). Parse raw user input with EntryRef::parse, then
resolve it to a concrete PathBuf with EntryRef::resolve.
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EntryRef
impl RefUnwindSafe for EntryRef
impl Send for EntryRef
impl Sync for EntryRef
impl Unpin for EntryRef
impl UnsafeUnpin for EntryRef
impl UnwindSafe for EntryRef
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