pub struct Meta { /* private fields */ }Expand description
Outbound document-meta plugin.
Implementations§
Source§impl Meta
impl Meta
pub fn new() -> Self
pub fn site_name(self, name: impl Into<String>) -> Self
pub fn title_template(self, t: impl Into<String>) -> Self
pub fn default_image(self, img: impl Into<String>) -> Self
pub fn twitter_site(self, s: impl Into<String>) -> Self
pub fn public_url(self, u: impl Into<String>) -> Self
pub fn trailing_slash(self, p: TrailingSlash) -> Self
Sourcepub fn soft_check(self) -> Self
pub fn soft_check(self) -> Self
Soft check: missing title/description warn via tracing instead of failing.
pub fn page() -> MetaPage
pub fn noindex() -> MetaPage
Trait Implementations§
Source§impl Plugin for Meta
impl Plugin for Meta
Source§fn id(&self) -> &'static str
fn id(&self) -> &'static str
Stable plugin identifier used for dependency checks and
crate::App::has_plugin. Read moreSource§fn meta(&self) -> PluginMeta
fn meta(&self) -> PluginMeta
Display name, description, and declared
PluginMeta::sdk version.Auto Trait Implementations§
impl Freeze for Meta
impl RefUnwindSafe for Meta
impl Send for Meta
impl Sync for Meta
impl Unpin for Meta
impl UnsafeUnpin for Meta
impl UnwindSafe for Meta
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