pub struct ArchivePlan {
pub to_flip: Vec<Page>,
pub changed_urls: Vec<String>,
}Expand description
A planned archive / unarchive of a selection and (optionally) its
subtree. Pure read output — the caller applies to_flip
inside its own transaction, then purges changed_urls.
Fields§
§to_flip: Vec<Page>Rows whose status must change, with the new status (and any
republish stamps) already applied — save them as-is.
changed_urls: Vec<String>Every url_path whose public treatment changes — the selection
plus every currently-public descendant (they inherit / lose the
archived banner at render time even when their own row is
untouched). The caller purges these from the frontend cache.
Trait Implementations§
Source§impl Debug for ArchivePlan
impl Debug for ArchivePlan
Auto Trait Implementations§
impl Forget for ArchivePlan
impl Freeze for ArchivePlan
impl RefUnwindSafe for ArchivePlan
impl Send for ArchivePlan
impl Sync for ArchivePlan
impl Unpin for ArchivePlan
impl UnsafeUnpin for ArchivePlan
impl UnwindSafe for ArchivePlan
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreCreates a shared type from an unshared type.