pub struct RenameJournal {
pub source: PathBuf,
pub dest: PathBuf,
pub from_name: String,
pub to_name: String,
pub backlinks: Vec<PathBuf>,
}Expand description
On-disk record describing one in-progress rename.
Fields§
§source: PathBufPath the source .md file lived at before the rename.
dest: PathBufPath the source file is being moved to.
from_name: StringName (filename without .md) used in [[wikilinks]] to identify
this record before the rename.
to_name: StringName being introduced.
backlinks: Vec<PathBuf>Files known to contain at least one [[from_name]] reference
when the journal was written. May contain extras that no longer
match (replay handles that gracefully).
Trait Implementations§
Source§impl Clone for RenameJournal
impl Clone for RenameJournal
Source§fn clone(&self) -> RenameJournal
fn clone(&self) -> RenameJournal
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 RenameJournal
impl Debug for RenameJournal
Source§impl<'de> Deserialize<'de> for RenameJournal
impl<'de> Deserialize<'de> for RenameJournal
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
Source§impl PartialEq for RenameJournal
impl PartialEq for RenameJournal
Source§fn eq(&self, other: &RenameJournal) -> bool
fn eq(&self, other: &RenameJournal) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RenameJournal
impl Serialize for RenameJournal
impl Eq for RenameJournal
impl StructuralPartialEq for RenameJournal
Auto Trait Implementations§
impl Freeze for RenameJournal
impl RefUnwindSafe for RenameJournal
impl Send for RenameJournal
impl Sync for RenameJournal
impl Unpin for RenameJournal
impl UnsafeUnpin for RenameJournal
impl UnwindSafe for RenameJournal
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.