pub struct UnpublishedChangesReport;Expand description
Unpublished changes — pages that were published once but now sit
in draft (the editor saved a draft of a live page). In this CMS the
page row’s status is the editor’s chosen status, so a previously
published page (published_at set) currently at status = draft
has edits not yet re-published.
Trait Implementations§
Source§impl Default for UnpublishedChangesReport
impl Default for UnpublishedChangesReport
Source§impl Report for UnpublishedChangesReport
impl Report for UnpublishedChangesReport
Source§fn description(&self) -> Option<&'static str>
fn description(&self) -> Option<&'static str>
Optional one-line blurb shown under the heading.
Source§fn columns(&self) -> Vec<ReportColumn>
fn columns(&self) -> Vec<ReportColumn>
The table columns, left to right.
Source§fn rows<'life0, 'life1, 'async_trait>(
&'life0 self,
pool: &'life1 Pool,
_user_id: Option<i64>,
) -> Pin<Box<dyn Future<Output = Vec<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn rows<'life0, 'life1, 'async_trait>(
&'life0 self,
pool: &'life1 Pool,
_user_id: Option<i64>,
) -> Pin<Box<dyn Future<Output = Vec<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Build the rows. Each row is a JSON object keyed by column key;
an optional
edit_url key links the first cell. user_id is
the signed-in user (for “your …”-style reports); None for an
unauthenticated context.Auto Trait Implementations§
impl Freeze for UnpublishedChangesReport
impl RefUnwindSafe for UnpublishedChangesReport
impl Send for UnpublishedChangesReport
impl Sync for UnpublishedChangesReport
impl Unpin for UnpublishedChangesReport
impl UnsafeUnpin for UnpublishedChangesReport
impl UnwindSafe for UnpublishedChangesReport
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.