pub struct PageHead {
pub title: Option<String>,
pub description: Option<String>,
pub canonical: Option<String>,
pub robots: Option<String>,
pub open_graph: Option<OpenGraph>,
}Expand description
Controlled document metadata shared by full documents and page navigation.
Fields§
§title: Option<String>§description: Option<String>§canonical: Option<String>§robots: Option<String>§open_graph: Option<OpenGraph>Implementations§
Source§impl PageHead
impl PageHead
pub fn new(title: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
pub fn canonical(self, canonical: impl Into<String>) -> Self
pub fn robots(self, robots: impl Into<String>) -> Self
pub fn open_graph(self, open_graph: OpenGraph) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PageHead
impl<'de> Deserialize<'de> for PageHead
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for PageHead
Auto Trait Implementations§
impl Freeze for PageHead
impl RefUnwindSafe for PageHead
impl Send for PageHead
impl Sync for PageHead
impl Unpin for PageHead
impl UnsafeUnpin for PageHead
impl UnwindSafe for PageHead
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