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>) -> RenderContext
pub fn locale(self, locale: impl Into<String>) -> RenderContext
Sourcepub fn csp_nonce(self, nonce: CspNonce) -> RenderContext
pub fn csp_nonce(self, nonce: CspNonce) -> RenderContext
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
Source§fn clone(&self) -> RenderContext
fn clone(&self) -> RenderContext
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 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