pub struct SessionOptions {
pub entry_id: String,
pub request_path: String,
pub nonce: Option<String>,
pub head_inject: Option<String>,
pub body_inject: Option<String>,
}Expand description
Owned per-response configuration, so a session outlives its caller’s strings.
Fields§
§entry_id: StringEntry fragment to render.
request_path: StringRequest path used for route matching.
nonce: Option<String>Optional CSP nonce for generated inline <script> tags.
head_inject: Option<String>Optional HTML injected at the structural head_end boundary.
body_inject: Option<String>Optional HTML injected at the structural body_end boundary.
Implementations§
Trait Implementations§
Source§impl Clone for SessionOptions
impl Clone for SessionOptions
Source§fn clone(&self) -> SessionOptions
fn clone(&self) -> SessionOptions
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 moreAuto Trait Implementations§
impl Freeze for SessionOptions
impl RefUnwindSafe for SessionOptions
impl Send for SessionOptions
impl Sync for SessionOptions
impl Unpin for SessionOptions
impl UnsafeUnpin for SessionOptions
impl UnwindSafe for SessionOptions
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