pub struct Head {
pub title: Option<String>,
pub meta_tags: Vec<MetaTag>,
pub links: Vec<LinkTag>,
}Fields§
§title: Option<String>§links: Vec<LinkTag>Implementations§
Source§impl Head
impl Head
pub fn new() -> Self
pub fn title(self, title: impl Into<String>) -> Self
pub fn meta(self, name: impl Into<String>, content: impl Into<String>) -> Self
pub fn description(self, desc: impl Into<String>) -> Self
pub fn keywords(self, keywords: impl Into<String>) -> Self
pub fn og_title(self, title: impl Into<String>) -> Self
pub fn og_description(self, desc: impl Into<String>) -> Self
pub fn og_image(self, url: impl Into<String>) -> Self
pub fn link_stylesheet(self, href: impl Into<String>) -> Self
pub fn link(self, rel: impl Into<String>, href: impl Into<String>) -> Self
pub fn to_html(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Head
impl RefUnwindSafe for Head
impl Send for Head
impl Sync for Head
impl Unpin for Head
impl UnwindSafe for Head
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