Struct leptos_meta::MetaContext
source · pub struct MetaContext {
pub html: HtmlContext,
pub title: TitleContext,
pub body: BodyContext,
pub tags: MetaTagsContext,
}
Expand description
Contains the current state of meta tags. To access it, you can use use_head.
This should generally by provided somewhere in the root of your application using provide_meta_context.
Fields§
§html: HtmlContext
Metadata associated with the <html>
element
title: TitleContext
Metadata associated with the <title>
element.
body: BodyContext
Metadata associated with the <body>
element
Other metadata tags.
Implementations§
source§impl MetaContext
impl MetaContext
sourcepub fn new() -> Self
pub fn new() -> Self
Creates an empty MetaContext.
Trait Implementations§
source§impl Clone for MetaContext
impl Clone for MetaContext
source§fn clone(&self) -> MetaContext
fn clone(&self) -> MetaContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MetaContext
impl Debug for MetaContext
source§impl Default for MetaContext
impl Default for MetaContext
source§fn default() -> MetaContext
fn default() -> MetaContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for MetaContext
impl !Send for MetaContext
impl !Sync for MetaContext
impl Unpin for MetaContext
impl !UnwindSafe for MetaContext
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