pub struct FlushPlan {
pub deletes: Vec<PathBuf>,
pub renames: Vec<(PathBuf, PathBuf)>,
pub writes: Vec<(PathBuf, String)>,
pub retired_write: Option<(PathBuf, String)>,
pub legacy_remove: Option<PathBuf>,
}Expand description
What a flush must persist, as absolute paths and rendered text — computed without touching the filesystem so any backend can execute it.
Fields§
§deletes: Vec<PathBuf>Document files to remove (a doc was deleted/closed/retired).
renames: Vec<(PathBuf, PathBuf)>Document files to move (from, to) after a layout/status change.
writes: Vec<(PathBuf, String)>Document files to (re)write (path, canonical text).
retired_write: Option<(PathBuf, String)>The retired ledger to (re)write (_retired.md path, serialized text).
legacy_remove: Option<PathBuf>A legacy _retired.txt to delete (migrated to _retired.md).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FlushPlan
impl RefUnwindSafe for FlushPlan
impl Send for FlushPlan
impl Sync for FlushPlan
impl Unpin for FlushPlan
impl UnsafeUnpin for FlushPlan
impl UnwindSafe for FlushPlan
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more