pub struct RoutesSitemapResource { /* private fields */ }
Implementations§
Source§impl RoutesSitemapResource
impl RoutesSitemapResource
pub fn new( _prefix: String, _format: SitemapFormat, _extensions: Option<&Extensions>, ) -> ServerResult<Self>
pub fn new_xml( _prefix: String, _extensions: Option<&Extensions>, ) -> ServerResult<Self>
pub fn new_text( _prefix: String, _extensions: Option<&Extensions>, ) -> ServerResult<Self>
pub fn new_with_routes( _prefix: String, _format: SitemapFormat, _routes: Option<Routes>, _extensions: Option<&Extensions>, ) -> ServerResult<Self>
pub fn into_handler(self) -> impl Handler
Trait Implementations§
Source§impl StaticResource for RoutesSitemapResource
impl StaticResource for RoutesSitemapResource
fn content_type(&self) -> ContentType
fn description(&self) -> &'static str
fn into_handler_dyn(self) -> HandlerDynArc
Auto Trait Implementations§
impl Freeze for RoutesSitemapResource
impl !RefUnwindSafe for RoutesSitemapResource
impl Send for RoutesSitemapResource
impl Sync for RoutesSitemapResource
impl Unpin for RoutesSitemapResource
impl !UnwindSafe for RoutesSitemapResource
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