pub struct StaleRedirectsReport;Expand description
Registry report surfacing which redirects are worth
retiring: never-used, long-unused, or auto-disabled. Appears in the
Reports nav automatically via crate::register_report!.
Trait Implementations§
Source§impl Default for StaleRedirectsReport
impl Default for StaleRedirectsReport
Source§impl Report for StaleRedirectsReport
impl Report for StaleRedirectsReport
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 Forget for StaleRedirectsReport
impl Freeze for StaleRedirectsReport
impl RefUnwindSafe for StaleRedirectsReport
impl Send for StaleRedirectsReport
impl Sync for StaleRedirectsReport
impl Unpin for StaleRedirectsReport
impl UnsafeUnpin for StaleRedirectsReport
impl UnwindSafe for StaleRedirectsReport
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.