Struct chrome_remote_interface_model::cache_storage::DataEntryBuilder[][src]

pub struct DataEntryBuilder { /* fields omitted */ }
This is supported on crate features experimental and CacheStorage only.

Implementations

impl DataEntryBuilder[src]

pub fn request_url(&mut self, v: String) -> &mut Self[src]

Request URL.

pub fn request_method(&mut self, v: String) -> &mut Self[src]

Request method.

pub fn request_headers(&mut self, v: Vec<Header>) -> &mut Self[src]

Request headers

pub fn response_time(&mut self, v: f64) -> &mut Self[src]

Number of seconds since epoch.

pub fn response_status(&mut self, v: u32) -> &mut Self[src]

HTTP response status code.

pub fn response_status_text(&mut self, v: String) -> &mut Self[src]

HTTP response status text.

pub fn response_type(&mut self, v: CachedResponseType) -> &mut Self[src]

HTTP response type

pub fn response_headers(&mut self, v: Vec<Header>) -> &mut Self[src]

Response headers

pub fn build(&mut self) -> Result<DataEntry, &'static str>[src]

Trait Implementations

impl Clone for DataEntryBuilder[src]

impl Debug for DataEntryBuilder[src]

impl Default for DataEntryBuilder[src]

Auto Trait Implementations

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.