pub struct Sitemap { /* private fields */ }Expand description
Sitemap plugin: auto routes + exclude/include + providers.
Implementations§
Source§impl Sitemap
impl Sitemap
pub fn new() -> Self
pub fn public_url(self, u: impl Into<String>) -> Self
pub fn path(self, p: impl Into<String>) -> Self
pub fn ttl(self, d: Duration) -> Self
pub fn from_routes(self, yes: bool) -> Self
pub fn exclude(self, pattern: impl Into<String>) -> Self
pub fn include(self, path: impl Into<String>) -> Self
pub fn provider<F, Fut>(self, pattern: impl Into<String>, f: F) -> Self
Trait Implementations§
Source§impl Plugin for Sitemap
impl Plugin for Sitemap
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 !RefUnwindSafe for Sitemap
impl !UnwindSafe for Sitemap
impl Freeze for Sitemap
impl Send for Sitemap
impl Sync for Sitemap
impl Unpin for Sitemap
impl UnsafeUnpin for Sitemap
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