pub enum FrameOptionsKind {
Deny,
SameOrigin,
}Expand description
X-Frame-Options labels.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for FrameOptionsKind
impl Clone for FrameOptionsKind
Source§fn clone(&self) -> FrameOptionsKind
fn clone(&self) -> FrameOptionsKind
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 moreSource§impl Debug for FrameOptionsKind
impl Debug for FrameOptionsKind
Source§impl Display for FrameOptionsKind
impl Display for FrameOptionsKind
Source§impl FromStr for FrameOptionsKind
impl FromStr for FrameOptionsKind
Source§type Err = SecurityHeaderParseError
type Err = SecurityHeaderParseError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<FrameOptionsKind, <FrameOptionsKind as FromStr>::Err>
fn from_str( input: &str, ) -> Result<FrameOptionsKind, <FrameOptionsKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for FrameOptionsKind
impl Hash for FrameOptionsKind
Source§impl Ord for FrameOptionsKind
impl Ord for FrameOptionsKind
Source§fn cmp(&self, other: &FrameOptionsKind) -> Ordering
fn cmp(&self, other: &FrameOptionsKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FrameOptionsKind
impl PartialEq for FrameOptionsKind
Source§fn eq(&self, other: &FrameOptionsKind) -> bool
fn eq(&self, other: &FrameOptionsKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for FrameOptionsKind
impl PartialOrd for FrameOptionsKind
impl Copy for FrameOptionsKind
impl Eq for FrameOptionsKind
impl StructuralPartialEq for FrameOptionsKind
Auto Trait Implementations§
impl Freeze for FrameOptionsKind
impl RefUnwindSafe for FrameOptionsKind
impl Send for FrameOptionsKind
impl Sync for FrameOptionsKind
impl Unpin for FrameOptionsKind
impl UnsafeUnpin for FrameOptionsKind
impl UnwindSafe for FrameOptionsKind
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