pub struct Nonce(pub String);Expand description
The per-request CSP nonce (for your own inline scripts).
Tuple Fields§
§0: StringTrait Implementations§
Source§impl FromContext for Nonce
impl FromContext for Nonce
fn from_context(ctx: &Arc<RequestContext>) -> Result<Nonce, Error>
Auto Trait Implementations§
impl Forget for Nonce
impl Freeze for Nonce
impl Move for Nonce
impl RefUnwindSafe for Nonce
impl Send for Nonce
impl Sync for Nonce
impl Unpin for Nonce
impl UnsafeUnpin for Nonce
impl UnwindSafe for Nonce
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