pub enum XDownloadOptions {
NoOpen,
}Expand description
Manages X-Download-Options header
The X-Download-Options HTTP response header indicates that the browser (Internet Explorer) should not display the option to “Open” a file that has been downloaded from an application, to prevent phishing attacks that could trick users into opening potentially malicious content that could infect their computer.
§Values
- noopen: Prevents Internet Explorer from executing downloads in your site’s context.
§Examples
use helmet_core::XDownloadOptions;
let x_download_options = XDownloadOptions::noopen();Variants§
NoOpen
Implementations§
Trait Implementations§
Source§impl Clone for XDownloadOptions
impl Clone for XDownloadOptions
Source§fn clone(&self) -> XDownloadOptions
fn clone(&self) -> XDownloadOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Display for XDownloadOptions
impl Display for XDownloadOptions
Auto Trait Implementations§
impl Freeze for XDownloadOptions
impl RefUnwindSafe for XDownloadOptions
impl Send for XDownloadOptions
impl Sync for XDownloadOptions
impl Unpin for XDownloadOptions
impl UnwindSafe for XDownloadOptions
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