[][src]Struct csp::ReportUris

pub struct ReportUris<'a>(_);

Used for ReportUri Directive.

Example usage

let report_uris = csp::ReportUris::new().add("https://example.org/report");

Methods

impl<'a> ReportUris<'a>[src]

pub fn new_with(report_uri: &'a str) -> Self[src]

pub fn new() -> Self[src]

pub fn add_borrowed<'b>(&'b mut self, report_uri: &'a str) -> &'b mut Self[src]

pub fn add(self, report_uri: &'a str) -> Self[src]

Trait Implementations

impl<'a> Clone for ReportUris<'a>[src]

impl<'a> Debug for ReportUris<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for ReportUris<'a>

impl<'a> Send for ReportUris<'a>

impl<'a> Sync for ReportUris<'a>

impl<'a> Unpin for ReportUris<'a>

impl<'a> UnwindSafe for ReportUris<'a>

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.