pub struct ComputedRouteMeta {
pub title: Option<String>,
pub description: Option<&'static str>,
pub open_graph: ComputedOpenGraph,
/* private fields */
}Expand description
Precomputed metadata for a specific route (flattened at build time).
Fields§
§title: Option<String>§description: Option<&'static str>§open_graph: ComputedOpenGraphImplementations§
Source§impl ComputedRouteMeta
impl ComputedRouteMeta
Sourcepub fn cascade(
parent: &ComputedRouteMeta,
local_providers: &[&'static dyn Metadata],
) -> ComputedRouteMeta
pub fn cascade( parent: &ComputedRouteMeta, local_providers: &[&'static dyn Metadata], ) -> ComputedRouteMeta
Creates computed metadata by cascading parent metadata with local metadata providers.
Trait Implementations§
Source§impl Clone for ComputedRouteMeta
impl Clone for ComputedRouteMeta
Source§fn clone(&self) -> ComputedRouteMeta
fn clone(&self) -> ComputedRouteMeta
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 Default for ComputedRouteMeta
impl Default for ComputedRouteMeta
Source§fn default() -> ComputedRouteMeta
fn default() -> ComputedRouteMeta
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Forget for ComputedRouteMeta
impl Freeze for ComputedRouteMetawhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
&'static str: Freeze,
PhantomData<&'static str>: Freeze,
PhantomData<ResolvedOpenGraphImage>: Freeze,
PhantomData<ResolvedOpenGraphMedia>: Freeze,
impl Move for ComputedRouteMeta
impl RefUnwindSafe for ComputedRouteMeta
impl Send for ComputedRouteMeta
impl Sync for ComputedRouteMetawhere
RawVecInner: Sync,
impl Unpin for ComputedRouteMeta
impl UnsafeUnpin for ComputedRouteMetawhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static str: UnsafeUnpin,
PhantomData<&'static str>: UnsafeUnpin,
PhantomData<ResolvedOpenGraphImage>: UnsafeUnpin,
PhantomData<ResolvedOpenGraphMedia>: UnsafeUnpin,
impl UnwindSafe for ComputedRouteMeta
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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 more