pub struct RenderContext {
pub url: String,
pub locale: String,
/* private fields */
}Fields§
§url: String§locale: StringImplementations§
Source§impl RenderContext
impl RenderContext
pub fn new(url: impl Into<String>) -> Self
pub fn locale(self, locale: impl Into<String>) -> Self
Sourcepub fn csp_nonce(self, nonce: CspNonce) -> Self
pub fn csp_nonce(self, nonce: CspNonce) -> Self
Attach the validated nonce that must also appear in the HTTP CSP Header and the surrounding HTML document.
pub const fn nonce(&self) -> Option<&CspNonce>
Trait Implementations§
Source§impl Clone for RenderContext
impl Clone for RenderContext
Auto Trait Implementations§
impl Freeze for RenderContext
impl RefUnwindSafe for RenderContext
impl Send for RenderContext
impl Sync for RenderContext
impl Unpin for RenderContext
impl UnsafeUnpin for RenderContext
impl UnwindSafe for RenderContext
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