pub struct BootstrapExtensionContext<'a> {
pub protocol: &'a WebUIProtocol,
pub components: &'a HashSet<String>,
pub payloads: &'a [WebUiTemplatePayload<'a>],
pub nonce: Option<&'a str>,
}Expand description
Context passed to plugin-specific SSR bootstrap extension hooks.
Fields§
§protocol: &'a WebUIProtocolFull protocol for plugins that need additional component metadata.
components: &'a HashSet<String>Route-reachable component tags for this render.
payloads: &'a [WebUiTemplatePayload<'a>]Split WebUI template payloads collected for this render.
nonce: Option<&'a str>CSP nonce for executable scripts, when configured.
Auto Trait Implementations§
impl<'a> Freeze for BootstrapExtensionContext<'a>
impl<'a> RefUnwindSafe for BootstrapExtensionContext<'a>
impl<'a> Send for BootstrapExtensionContext<'a>
impl<'a> Sync for BootstrapExtensionContext<'a>
impl<'a> Unpin for BootstrapExtensionContext<'a>
impl<'a> UnsafeUnpin for BootstrapExtensionContext<'a>
impl<'a> UnwindSafe for BootstrapExtensionContext<'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