pub struct ContentSecurity { /* private fields */ }Expand description
Hosts an area’s pages may reach besides their own; nothing until told. Each source is
https://host[:port], its leftmost label * for any subdomain.
Implementations§
Source§impl ContentSecurity
impl ContentSecurity
pub fn new() -> Self
pub fn script(self, source: &str) -> Self
pub fn style(self, source: &str) -> Self
pub fn image(self, source: &str) -> Self
pub fn font(self, source: &str) -> Self
pub fn connect(self, source: &str) -> Self
Sourcepub fn frame(self, source: &str) -> Self
pub fn frame(self, source: &str) -> Self
For frames the page embeds; who may frame the page stays 'none'.
pub fn form_action(self, source: &str) -> Self
Trait Implementations§
Source§impl Clone for ContentSecurity
impl Clone for ContentSecurity
Source§impl Debug for ContentSecurity
impl Debug for ContentSecurity
Auto Trait Implementations§
impl Forget for ContentSecurity
impl Freeze for ContentSecurity
impl RefUnwindSafe for ContentSecurity
impl Send for ContentSecurity
impl Sync for ContentSecurity
impl Unpin for ContentSecurity
impl UnsafeUnpin for ContentSecurity
impl UnwindSafe for ContentSecurity
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