pub struct UiBootstrap {
pub auth_token: Option<String>,
}Expand description
Bootstrap context passed into the SPA at request time. Currently
carries the bearer token the API middleware expects on every
non-/setup request. The fallback handler rewrites index.html to
embed it before sending the response; the SPA reads it from
window.__NYX_AGENT_BOOTSTRAP__.
Fields§
§auth_token: Option<String>Trait Implementations§
Source§impl Clone for UiBootstrap
impl Clone for UiBootstrap
Source§fn clone(&self) -> UiBootstrap
fn clone(&self) -> UiBootstrap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for UiBootstrap
impl Default for UiBootstrap
Source§fn default() -> UiBootstrap
fn default() -> UiBootstrap
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UiBootstrap
impl RefUnwindSafe for UiBootstrap
impl Send for UiBootstrap
impl Sync for UiBootstrap
impl Unpin for UiBootstrap
impl UnsafeUnpin for UiBootstrap
impl UnwindSafe for UiBootstrap
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