pub struct RenderOptions<'a> {
pub entry_id: &'a str,
pub request_path: &'a str,
pub nonce: Option<&'a str>,
}Expand description
Options controlling how the handler renders a protocol.
The handler performs server-side route matching: matched routes are rendered visible with content; non-matched routes are rendered hidden and empty.
Fields§
§entry_id: &'a strThe fragment ID to start rendering from (e.g., "index.html").
request_path: &'a strThe URL path to match routes against (e.g., "/contacts/42").
nonce: Option<&'a str>Optional CSP nonce for inline <script> tags.
When set, all inline scripts include nonce="VALUE" and a
<meta name="webui-nonce"> tag is emitted for the client router.
Implementations§
Source§impl<'a> RenderOptions<'a>
impl<'a> RenderOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for RenderOptions<'a>
impl<'a> RefUnwindSafe for RenderOptions<'a>
impl<'a> Send for RenderOptions<'a>
impl<'a> Sync for RenderOptions<'a>
impl<'a> Unpin for RenderOptions<'a>
impl<'a> UnsafeUnpin for RenderOptions<'a>
impl<'a> UnwindSafe for RenderOptions<'a>
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