pub struct MetaOverlay { /* private fields */ }Expand description
Shared per-request overlay (cheap to clone into middleware after next).
Implementations§
Source§impl MetaOverlay
impl MetaOverlay
pub fn jsonld_schema<T: ToJsonLd>(&self, schema: &T) -> &Self
pub fn jsonld_raw(&self, value: Value) -> &Self
Source§impl MetaOverlay
impl MetaOverlay
pub fn title(&self, t: impl Into<String>) -> &Self
pub fn description(&self, d: impl Into<String>) -> &Self
pub fn image(&self, i: impl Into<String>) -> &Self
pub fn noindex(&self) -> &Self
pub fn canonical_path(&self, p: impl Into<String>) -> &Self
pub fn published(&self, t: DateTime<Utc>) -> &Self
pub fn published_opt(&self, t: Option<DateTime<Utc>>) -> &Self
pub fn og_type(&self, t: impl Into<String>) -> &Self
pub fn jsonld(&self, block: Value) -> &Self
pub fn manual(&self) -> &Self
Trait Implementations§
Source§impl Clone for MetaOverlay
impl Clone for MetaOverlay
Source§impl Debug for MetaOverlay
impl Debug for MetaOverlay
Auto Trait Implementations§
impl Freeze for MetaOverlay
impl RefUnwindSafe for MetaOverlay
impl Send for MetaOverlay
impl Sync for MetaOverlay
impl Unpin for MetaOverlay
impl UnsafeUnpin for MetaOverlay
impl UnwindSafe for MetaOverlay
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