pub struct CspNonce(pub String);Expand description
A Content Security Policy nonce for the current request.
Your own CSP middleware puts it in the request extensions (or a handler puts it in the response extensions). The axum and actix-web middleware read it from there and add it to the scripts they print.
Tuple Fields§
§0: StringTrait Implementations§
impl Eq for CspNonce
impl StructuralPartialEq for CspNonce
Auto Trait Implementations§
impl Freeze for CspNonce
impl RefUnwindSafe for CspNonce
impl Send for CspNonce
impl Sync for CspNonce
impl Unpin for CspNonce
impl UnsafeUnpin for CspNonce
impl UnwindSafe for CspNonce
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