[][src]Struct reporting_api::Report

pub struct Report<C> {
    pub age: Duration,
    pub url: String,
    pub user_agent: String,
    pub body: C,
}

Represents a single report, after having parsed the body into the Rust type specific to this type of report.

Fields

age: Duration

The amount of time between when the report was generated by the user agent and when it was uploaded.

url: String

The URL of the request that this report describes.

user_agent: String

The value of the User-Agent header of the request that this report describes.

body: C

The body of the report.

Trait Implementations

impl<C: PartialEq> PartialEq<Report<C>> for Report<C>[src]

impl<C: Default> Default for Report<C>[src]

impl<C: Clone> Clone for Report<C>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<C: Debug> Debug for Report<C>[src]

Auto Trait Implementations

impl<C> Send for Report<C> where
    C: Send

impl<C> Sync for Report<C> where
    C: Sync

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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]