pub struct DefaultSitemapProvider { /* private fields */ }Implementations§
Source§impl DefaultSitemapProvider
impl DefaultSitemapProvider
pub async fn new() -> Result<Self>
pub const fn from_config(content_config: ContentConfigRaw) -> Self
Trait Implementations§
Source§impl Debug for DefaultSitemapProvider
impl Debug for DefaultSitemapProvider
Source§impl SitemapProvider for DefaultSitemapProvider
impl SitemapProvider for DefaultSitemapProvider
fn provider_id(&self) -> &'static str
fn source_specs(&self) -> Vec<SitemapSourceSpec>
fn static_urls(&self, base_url: &str) -> Vec<SitemapUrlEntry>
fn resolve_placeholders<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_ctx: &'life1 SitemapContext<'life2>,
content: &'life3 Value,
placeholders: &'life4 [PlaceholderMapping],
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn priority(&self) -> u32
Auto Trait Implementations§
impl Freeze for DefaultSitemapProvider
impl RefUnwindSafe for DefaultSitemapProvider
impl Send for DefaultSitemapProvider
impl Sync for DefaultSitemapProvider
impl Unpin for DefaultSitemapProvider
impl UnsafeUnpin for DefaultSitemapProvider
impl UnwindSafe for DefaultSitemapProvider
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more