Struct sitewriter::Sitemap [−][src]
pub struct Sitemap;
Struct that implements the sitemap generation function.
Implementations
impl Sitemap
[src]
impl Sitemap
[src]pub fn generate<T>(inner_writer: T, urls: &[UrlEntry]) -> T where
T: Write,
[src]
T: Write,
Generates the sitemap and saves it using the provided writer.
It’s recommended to use Sitemap::into_bytes
or Sitemap::into_str
if you need a
String or a Vec
pub fn into_bytes(urls: &[UrlEntry]) -> Vec<u8>
[src]
Generates the sitemap.
pub fn into_str(urls: &[UrlEntry]) -> Result<String, Utf8Error>
[src]
Generates the sitemap returning a string.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Sitemap
impl RefUnwindSafe for Sitemap
impl UnwindSafe for Sitemap
impl UnwindSafe for Sitemap