pub struct StaticHtmlEndpoint {
pub body: &'static str,
}Expand description
Endpoint that serves a static HTML payload.
Used for built-in endpoints like /api/docs.
Fields§
§body: &'static strTrait Implementations§
Auto Trait Implementations§
impl Freeze for StaticHtmlEndpoint
impl RefUnwindSafe for StaticHtmlEndpoint
impl Send for StaticHtmlEndpoint
impl Sync for StaticHtmlEndpoint
impl Unpin for StaticHtmlEndpoint
impl UnsafeUnpin for StaticHtmlEndpoint
impl UnwindSafe for StaticHtmlEndpoint
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