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.
Fields§
§entry_id: StringEntry fragment to render.
request_path: StringRequest path used for route matching.
nonce: Option<String>Optional CSP nonce.
head_inject: Option<String>Optional trusted HTML injected at head_end.
body_inject: Option<String>Optional trusted HTML injected at body_end.
Implementations§
Trait Implementations§
Source§impl Clone for SessionOptions
impl Clone for SessionOptions
Auto 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