pub struct MetaPage {
pub title: Option<String>,
pub description: Option<String>,
pub image: Option<String>,
pub noindex: bool,
pub canonical_path: Option<String>,
pub moved_to: Option<String>,
pub og_type: Option<String>,
pub manual: bool,
}Expand description
Partial page meta attached via .with(MetaPage::…).
Fields§
§title: Option<String>§description: Option<String>§image: Option<String>§noindex: bool§canonical_path: Option<String>§moved_to: Option<String>§og_type: Option<String>§manual: boolSkip automatic HTML head injection for this route.
Implementations§
Source§impl MetaPage
impl MetaPage
pub fn new() -> Self
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 moved_to(self, p: impl Into<String>) -> Self
pub fn og_type(self, t: impl Into<String>) -> Self
pub fn manual(self) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MetaPage
impl RefUnwindSafe for MetaPage
impl Send for MetaPage
impl Sync for MetaPage
impl Unpin for MetaPage
impl UnsafeUnpin for MetaPage
impl UnwindSafe for MetaPage
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