[][src]Struct content_security_policy::Directive

pub struct Directive { /* fields omitted */ }

Methods

impl Directive[src]

pub fn is_valid(&self) -> bool[src]

pub fn pre_request_check(
    &self,
    request: &Request,
    policy: &Policy
) -> CheckResult
[src]

pub fn post_request_check(
    &self,
    request: &Request,
    response: &Response,
    policy: &Policy
) -> CheckResult
[src]

pub fn response_check(
    &self,
    request: &Request,
    _response: &Response,
    policy: &Policy
) -> CheckResult
[src]

pub fn inline_check(
    &self,
    element: &Element,
    type_: InlineCheckType,
    policy: &Policy,
    source: &str
) -> CheckResult
[src]

Trait Implementations

impl Eq for Directive[src]

impl Clone for Directive[src]

impl PartialEq<Directive> for Directive[src]

impl Debug for Directive[src]

impl Display for Directive[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]